bitcoin automated trading

[Bitcoin automatic trading] Get Binance Coin transaction information

tradingbot 2022. 8. 29. 16:29

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

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

Referral Code : 21391362

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

 

If you want to know the last transaction information of a coin, you can call the get_recent_trades method.

 

Requires symol and limit as argument values. Write each coin and the number of transaction information you want to see.

 

Execution result. You can see the price and qty. price is the price and qty is the quantity.

 

You can check whether it is the same in Binance.

 

You can use get_historical_klines_generator when you want to know the previous day's trading price. In Symbol, you can enter the coin name, the start date and the last date. klines_type is a prefecture/gift. Returns to Generator.

 

Bring the trading price of BTCUSDT in kind during the 2017-08-01 ~ 2022-08-24.

 

반환 값이 많은데 순차적으로 오픈 시간, 시가, 고가, 저가, 종가, 거래량, 종료 시간이며, 나머지 5개는 필요없습니다.

 

Full source code

https://github.com/kivy678/BitcoinTrade/blob/main/getdata.py

 

 

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

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

Referral Code : 21391362

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