Skip to content

Commit c68c7f2

Browse files
WS API
1 parent ab404bb commit c68c7f2

File tree

4 files changed

+383
-14
lines changed

4 files changed

+383
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1212
## 2.9.0.dev (development stage/unreleased/unstable)
1313
### Added
1414
- New `Websocket API Spot` functions:
15+
- `manager.api.spot.cancel_and_replace_order()`
1516
- `manager.api.spot.get_aggregate_trades()`
1617
- `manager.api.spot.get_historical_trades()`
1718
- `manager.api.spot.get_klines()`

binance_websocket_api_futures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import logging
88
import os
99

10-
api_key = "3CJ8NHXgSk6BQxc7bWnHHjkxARxlgwJBZOmUQzmmsA9JV2sdpj52fJuwXAMyMlOX"
11-
api_secret = "js50rXE3hb7LFQV0dIQlX3s2qrxlvksqlnY3wH6s3rop78EkqmX7EyqMMvwwp6Ty"
10+
api_key = ""
11+
api_secret = ""
1212
market = "BTCUSDC"
1313

1414
async def binance_api(ubwa):

binance_websocket_api_spot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import logging
88
import os
99

10-
api_key = "3CJ8NHXgSk6BQxc7bWnHHjkxARxlgwJBZOmUQzmmsA9JV2sdpj52fJuwXAMyMlOX"
11-
api_secret = "js50rXE3hb7LFQV0dIQlX3s2qrxlvksqlnY3wH6s3rop78EkqmX7EyqMMvwwp6Ty"
10+
api_key = ""
11+
api_secret = ""
1212
market = "BTCUSDT"
1313

1414
async def binance_api(ubwa):
@@ -33,8 +33,8 @@ async def handle_socket_message(stream_id=None):
3333
ubwa.api.spot.get_order_book(stream_id=api_stream, symbol=market, limit=2)
3434
ubwa.api.spot.get_aggregate_trades(stream_id=api_stream, symbol=market)
3535
ubwa.api.spot.get_historical_trades(stream_id=api_stream, symbol=market)
36-
ubwa.api.spot.get_klines(stream_id=api_stream, symbol=market)
37-
ubwa.api.spot.get_ui_klines(stream_id=api_stream, symbol=market)
36+
ubwa.api.spot.get_klines(stream_id=api_stream, symbol=market, interval="1m")
37+
ubwa.api.spot.get_ui_klines(stream_id=api_stream, symbol=market, interval="1d")
3838
ubwa.api.spot.get_recent_trades(stream_id=api_stream, symbol=market)
3939
ubwa.api.spot.cancel_order(stream_id=api_stream, symbol=market, orig_client_order_id=orig_client_order_id)
4040
ubwa.api.spot.get_open_orders(stream_id=api_stream, symbol=market)

0 commit comments

Comments
 (0)