简体   繁体   中英

Python Binance - How to get the last PRICES traded in futures with websocket?

I would like to get the last PRICES traded in futures with websocket, but I can only get the last mark prices of the futures using the next code:

BinanceWS = BinanceSocketManager(Binance)
conn_key = BinanceWS.start_symbol_mark_price_socket('BTCUSDT', MarketDataHandler)
BinanceWS.start()

Is there any command to get the last prices? Thank you very much

For futures prices you can use start_symbol_ticker_futures_socket

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM