Skip to content

Instantly share code, notes, and snippets.

@coinscious-io
Created August 2, 2019 14:28
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/a1aa7e0e75daa024c3e59080f3d2e74b to your computer and use it in GitHub Desktop.
Save coinscious-io/a1aa7e0e75daa024c3e59080f3d2e74b to your computer and use it in GitHub Desktop.
Get VWAP of a trading pair at a specific exchange
import requests
url = "https://api.coinscious.org/exchange-vwap/binance/eth_btc"
querystring = {"interval":"1m"}
payload = ""
headers = {
'Authorization': "Bearer <token>"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment