Skip to content

Send requests to Binance API via websockets #319

Closed
@oliver-zehentleitner

Description

@oliver-zehentleitner

Binance has added the ability to send requests to the Binance API directly via websocket:
https://developers.binance.com/docs/binance-trading-api/websocket_api

I have started to add support for this in the UNICORN Binance WebSocket API.

I have added the following functions:

  • ubwa.api.spot.cancel_open_orders()
  • ubwa.api.spot.cancel_order()
  • ubwa.api.spot.create_order()
  • ubwa.api.spot.get_account_status()
  • ubwa.api.spot.get_exchange_info()
  • ubwa.api.spot.get_open_orders()
  • ubwa.api.spot.get_order()
  • ubwa.api.spot.get_order_book()
  • ubwa.api.spot.get_server_time()
  • ubwa.api.spot.ping()
  • ubwa.api.spot.create_test_order()
  • ubwa.api.spot.get_listen_key()

The implementation works, but is not yet complete. There are a lot of functions missing... will do that in the next time.

How To:
https://medium.lucit.tech/create-and-cancel-orders-via-websocket-on-binance-7f828831404

Docs:
https://unicorn-binance-websocket-api.docs.lucit.tech/unicorn_binance_websocket_api.html#unicorn-binance-websocket-api-ws-api-module

Todo:

  • Add missing requests (cancelReplace)

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions