Created
August 2, 2019 14:30
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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