generate functionFri, 17 Mar 2023

using api binance get info about for all symbols

from binance.client import Client client = Client("api_key", "api_secret") # get market depth depth = client.get_order_book(symbol='BNBBTC') # place a test market buy order, to place an actual order use the create_order function order = client.create_test_order( symbol='BNBBTC', side=Client.SIDE_BUY, type=Client.ORDER_TYPE_MARKET, quantity=100) # get all symbol prices prices = client.get_all_tickers()

Questions about programming?Chat with your personal AI assistant