Ccxt: Indicate whether unified methods require a symbol or not

Created on 4 Jan 2018  ·  3Comments  ·  Source: ccxt/ccxt

It’d be super helpful if there was a way to tell ahead of time of fetchOrders, fetchMyTrades, etc… require a symbol parameter or not.

Some exchanges seem to have hard coded errors thrown when it’s missing, while others throw an API error.

enhancement

Most helpful comment

Got it, you have a point, hope to add this feature very soon.

All 3 comments

@shnhrrsn we are working on adding that feature, as well as other flags for exchange capabilities. However, it might be much safer to design your logic in a way that would always pass a symbol. Have you considered this?

Unfortunately, I'm actually trying to do the opposite, get full trade history in a reliable way across multiple exchanges for any symbol traded.

In my case, if I don't need a symbol it's much faster since an exchange like GDAX will happily give the full history, where as when it's required I have to loop through the pairs one by one

Got it, you have a point, hope to add this feature very soon.

Was this page helpful?
0 / 5 - 0 ratings