You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug report:
In python you can use the best_bid_ask api to get spot prices and futures prices, but if you try to get a list of futures prices it does not work. You can get a list of spot price, if you add futures prices to a list of spot prices, it will just ignore the futures price. Can somebody please look into this?
Reproduction below:
Thank you for reporting! If this is an SDK specific issue, we will look into it and get back to you soon. If this is an API related request, report it in our Advanced API Discord instead (use this invite link if it's your first time accessing the Discord).
Bug report:
In python you can use the best_bid_ask api to get spot prices and futures prices, but if you try to get a list of futures prices it does not work. You can get a list of spot price, if you add futures prices to a list of spot prices, it will just ignore the futures price. Can somebody please look into this?
Reproduction below:
print(api_call(f"/api/v3/brokerage/best_bid_ask", "GET", payload={'product_ids' : ["BTC-USD"]}))
{'pricebooks': [{'product_id': 'BTC-USD', 'bids': [{'price': '95404', 'size': '0.05456974'}], 'asks': [{'price': '95407.96', 'size': '0.00019092'}], 'time': '2025-02-18T15:31:49.208992Z'}]}
print(api_call(f"/api/v3/brokerage/best_bid_ask", "GET", payload={'product_ids' : ["BIT-28FEB25-CDE"]}))
{'pricebooks': [{'product_id': 'BIT-28FEB25-CDE', 'bids': [{'price': '95715', 'size': '25'}], 'asks': [{'price': '95725', 'size': '7'}], 'time': '2025-02-18T15:31:49.360360Z'}]}
print(api_call(f"/api/v3/brokerage/best_bid_ask", "GET", payload={'product_ids' : ["DOG-28FEB25-CDE"]}))
{'pricebooks': [{'product_id': 'DOG-28FEB25-CDE', 'bids': [{'price': '0.2492', 'size': '10'}], 'asks': [{'price': '0.25014', 'size': '15'}], 'time': '2025-02-18T15:31:49.728037Z'}]}
print(api_call(f"/api/v3/brokerage/best_bid_ask", "GET", payload={'product_ids' : ["BIT-28FEB25-CDE", "BTC-USD"]}))
{'pricebooks': [{'product_id': 'BTC-USD', 'bids': [{'price': '95409.79', 'size': '0.00262349'}], 'asks': [{'price': '95414.78', 'size': '0.10375559'}], 'time': '2025-02-18T15:31:49.962820Z'}]}
print(api_call(f"/api/v3/brokerage/best_bid_ask", "GET", payload={'product_ids' : ["BIT-28FEB25-CDE", "DOG-28FEB25-CDE"]}))
{'pricebooks': []}
The text was updated successfully, but these errors were encountered: