Skip to content

Instantly share code, notes, and snippets.

@coinscious-io
Last active August 2, 2019 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coinscious-io/319d299933c86b6451deeaf21c8b4c46 to your computer and use it in GitHub Desktop.
Save coinscious-io/319d299933c86b6451deeaf21c8b4c46 to your computer and use it in GitHub Desktop.
Get the VWAP of a cryptocurrency denominated in a fiat currency
import requests
url = "https://api.coinscious.org/vwap/btc"
querystring = {"fiat":"CAD”}
payload = ""
headers = {
'Authorization': "Bearer <token>"
}
response = requests.request("GET", url, data=payload, headers=headers, params=querystring)
print(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment