본문 바로가기

bitcoin automated trading

[Bitcoin Automated Trading] Get Binance Futures Trading Information

------------------------------------------------------------------------------------------------------------------

https://accounts.binance.com/register?ref=21391362 <- Get Discount on Binance Futures Fees With Referral Code

Referral Code : 21391362

------------------------------------------------------------------------------------------------------------------

 

Up to this point, I have done programming in kind, but this time I will do programming as a gift. I used the python-binance library, but since the futures API is not supported, I will use the binance-futures-connector library. We will study only the major APIs as much as possible and create automatic trading.

 

There is no separate document organizing API information on GitHub, but there are examples. You can program quickly by simply copying the example.

https://github.com/binance/binance-futures-connector-python/tree/main/examples/um_futures

 

 

There are UMFutures and CMFutures. UM is a contract using USD and CM is a contract using coins. Since I'm contracting with UM, I'll call the UMFutures class.

 

When balance is called, the tether information in the gift wallet is retrieved.

 

By calling exchange_info, you can get symbol information and API call limit information.

You can see that the limit is lower than that of the spot API.

 

contractType is the futures transaction type. Binance supports unlimited and quarterly types, but since most prefer unlimited contracts, you can select 'PERPETUAL'.

 

 

------------------------------------------------------------------------------------------------------------------

https://accounts.binance.com/register?ref=21391362 <- Get Discount on Binance Futures Fees With Referral Code

Referral Code : 21391362

------------------------------------------------------------------------------------------------------------------