probe-gate
Demonstrates fetching the full order book for Bitcoin with raw precision (P0), showing 25 price levels per side
curl 'https://api-pub.bitfinex.com/v2/book/tBTCUSD/P0?len=25'
import requests
resp = requests.get(
"https://api-pub.bitfinex.com/v2/book/tBTCUSD/P0",
params={
'len': '25',
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("bitfinex")
result = api.fetch("book/{symbol}/{precision}", len=25)
for item in result:
print(item)
const resp = await fetch("https://api-pub.bitfinex.com/v2/book/tBTCUSD/P0?len=25");
const data = await resp.json();