Real-Time Cryptocurrency derivatives trading platform based in Hong Kong
BitMEX is a real-time cryptocurrency derivatives trading platform offering high-leverage Bitcoin futures and swaps.
import requests
url = "https://www.bitmex.com/api/v1/data?symbol=XBTUSD&count=100"
headers = {
"api-key": "YOUR_API_KEY",
"api-signature": "YOUR_API_SIGNATURE",
"api-expires": "YOUR_EXPIRY_TIMESTAMP" # Unix timestamp in seconds
}
response = requests.get(url, headers=headers)
print(response.json())Last 50 checks (10 min intervals)