forked from sammchardy/python-binance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_async_client_ws_api.py
More file actions
76 lines (46 loc) · 1.95 KB
/
Copy pathtest_async_client_ws_api.py
File metadata and controls
76 lines (46 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import pytest
@pytest.mark.asyncio()
async def test_ws_get_order_book(clientAsync):
await clientAsync.ws_get_order_book(symbol="BTCUSDT")
@pytest.mark.asyncio()
async def test_ws_get_recent_trades(clientAsync):
await clientAsync.ws_get_recent_trades(symbol="BTCUSDT")
@pytest.mark.asyncio()
async def test_ws_get_historical_trades(clientAsync):
await clientAsync.ws_get_historical_trades(symbol="BTCUSDT")
@pytest.mark.asyncio()
async def test_ws_get_aggregate_trades(clientAsync):
await clientAsync.ws_get_aggregate_trades(symbol="BTCUSDT")
@pytest.mark.asyncio()
async def test_ws_get_klines(clientAsync):
await clientAsync.ws_get_klines(symbol="BTCUSDT", interval="1m")
@pytest.mark.asyncio()
async def test_ws_get_uiKlines(clientAsync):
await clientAsync.ws_get_uiKlines(symbol="BTCUSDT", interval="1m")
@pytest.mark.asyncio()
async def test_ws_get_avg_price(clientAsync):
await clientAsync.ws_get_avg_price(symbol="BTCUSDT")
@pytest.mark.asyncio()
async def test_ws_get_ticker(clientAsync):
await clientAsync.ws_get_ticker(symbol="BTCUSDT")
@pytest.mark.asyncio()
async def test_ws_get_trading_day_ticker(clientAsync):
await clientAsync.ws_get_trading_day_ticker(symbol="BTCUSDT")
@pytest.mark.asyncio()
async def test_ws_get_symbol_ticker_window(clientAsync):
await clientAsync.ws_get_symbol_ticker_window(symbol="BTCUSDT")
@pytest.mark.asyncio()
async def test_ws_get_symbol_ticker(clientAsync):
await clientAsync.ws_get_symbol_ticker(symbol="BTCUSDT")
@pytest.mark.asyncio()
async def test_ws_get_orderbook_ticker(clientAsync):
await clientAsync.ws_get_orderbook_ticker(symbol="BTCUSDT")
@pytest.mark.asyncio()
async def test_ws_ping(clientAsync):
await clientAsync.ws_ping()
@pytest.mark.asyncio()
async def test_ws_get_time(clientAsync):
await clientAsync.ws_get_time()
@pytest.mark.asyncio()
async def test_ws_get_exchange_info(clientAsync):
await clientAsync.ws_get_exchange_info(symbol="BTCUSDT")