binancer icon indicating copy to clipboard operation
binancer copied to clipboard

Support API of USDM futures

Open siegfried opened this issue 3 years ago • 5 comments

Does this project accepts features of USDM? Shall I add them to binance.R or a new file?

siegfried avatar Dec 17 '21 11:12 siegfried

I am not familiar with the USDM features, but based on a quick search, I think it would be a great extension, so looking forward to any help :bow:

binance.R grew super large already (it was named that way as originally this package supported multiple crypto exchanges), so feel free to start a new file.

Thanks!

daroczig avatar Dec 17 '21 13:12 daroczig

I think binance_query() is reusable. For most of the API on USDM we just need to point the host to https://fapi.binance.com. I can make the base here as an argument. However, for functions like binance_new_order() need new counterparts since the orders on USDM are different. What do you propose the function names would be? Shall I rename the current spot specific functions and move them to a different file?

https://github.com/daroczig/binancer/blob/8cfdfe369980357c49deaf235419ae426af11717/R/binance.R#L112

siegfried avatar Dec 17 '21 14:12 siegfried

May I use tibble of dplyr instead of data.table in this project? @daroczig

siegfried avatar Dec 20 '21 02:12 siegfried

Sorry, I'd rather not mix dplyr and data.table in the same project.

On the other hand, if you are asking about the user-facing result, I've done this on a configurable way in another project of mine https://github.com/daroczig/dbr/blob/master/R/db.R#L131-L137

daroczig avatar Dec 20 '21 23:12 daroczig

It's fine. I don't want to mix them either.

siegfried avatar Dec 21 '21 05:12 siegfried