Skip to content

Instantly share code, notes, and snippets.

@coinscious-io
Created August 2, 2019 14:30
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/bb0df6e5aa8ce3c6784577d889fb9af8 to your computer and use it in GitHub Desktop.
Save coinscious-io/bb0df6e5aa8ce3c6784577d889fb9af8 to your computer and use it in GitHub Desktop.
Get OHLCV data for a cryptocurrency trading pair at a specific exchange
import requests
url = "https://api.coinscious.org/ohlcv/binance/eth_btc"
querystring = {"start":"1563593400000","end":"1563598800000"}
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