-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbinance_ws_asyncapi.yaml
1075 lines (1075 loc) · 32.9 KB
/
binance_ws_asyncapi.yaml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
asyncapi: 3.0.0
info:
title: Binance Websocket API
version: 1.0.0
description: >
The base endpoint is: wss://stream.binance.com:9443 or
wss://stream.binance.com:443.Streams can be accessed either in a single raw
stream or in a combined stream Raw streams are accessed at /ws/<streamName>
<br> Combined streams are accessed at
/stream?streams={streamName1}/{streamName2}/{streamName3} <br>Combined
stream events are wrapped as follows: {
"stream":"{streamName}","data":{rawPayload}} <br> All symbols for streams
are lowercase <br> A single connection to stream.binance.com is only valid
for 24 hours; expect to be disconnected at the 24 hour mark <br> Websocket
server will send a ping frame every 3 minutes.<br> If the websocket server
does not receive a pong frame back from the connection within a 10 minute
period, the connection will be disconnected.<br> When you receive a ping,
you must send a pong with a copy of ping's payload as soon as possible.<br>
Unsolicited pong frames are allowed, but will not prevent disconnection. It
is recommended that the payload for these pong frames are empty.<br> The
base endpoint wss://data-stream.binance.vision can be subscribed to receive
only market data messages.<br>User data stream is NOT available from this
URL.<br> <h2>Websocket Limits</h2><br>WebSocket connections have a limit of
5 incoming messages per second. A message is considered:<br>A PING
frame<br>A PONG frame<br>A JSON controlled message (e.g. subscribe,
unsubscribe)<br>A connection that goes beyond the limit will be
disconnected; IPs that are repeatedly disconnected may be banned.<br>A
single connection can listen to a maximum of 1024 streams.<br>There is a
limit of 300 connections per attempt every 5 minutes per IP.<br>Live
Subscribing/Unsubscribing to streams.The following data can be sent through
the websocket instance in order to subscribe/unsubscribe from streams.
Examples can be seen below.<br>The id is used as an identifier to uniquely
identify the messages going back and forth. The following formats are
accepted:<br>64-bit signed integer<br>alphanumeric strings; max length
36<br>null<br>In the response, if the result received is null this means the
request sent was a success for non-query requests (e.g.
Subscribing/Unsubscribing).
tags:
- name: subscription
description: Operations related to subscribing to streams
- name: unsubscription
description: Operations related to unsubscribing from streams
- name: listSubscriptions
description: Operations related to listing current subscriptions
- name: setProperty
description: >-
Operations related to setting properties, such as enabling combined
stream payloads
- name: errorHandling
description: Operations related to handling errors and invalid requests
- name: aggregateTrade
description: Real-time aggregated trade data for a single taker order
- name: trade
description: Real-time trade data with unique buyer and seller information
- name: klineWithTimezoneOffset
description: Real-time kline/candlestick chart updates with a UTC+8 timezone offset
- name: individualSymbolMiniTicker
description: 24hr rolling window mini-ticker statistics for an individual symbol
- name: allMarketMiniTickers
description: 24hr rolling window mini-ticker statistics for all symbols that changed
- name: individualSymbolTicker
description: 24hr rolling window ticker statistics for a single symbol
- name: allMarketTickers
description: 24hr rolling window ticker statistics for all symbols
- name: individualSymbolRollingWindowStatistics
description: >-
Rolling window ticker statistics for a single symbol, computed over
multiple windows
- name: allMarketRollingWindowStatistics
description: >-
Rolling window ticker statistics for all market symbols, computed over
multiple windows
- name: individualSymbolBookTicker
description: >-
Updates to the best bid or ask price or quantity in real-time for a
specified symbol
- name: averagePrice
description: Changes in the average price over a fixed time interval
- name: partialBookDepth
description: "Top bids and asks for a symbol, updated every second or 100ms"
- name: diffDepth
description: Order book price and quantity depth updates used to manage an order book
servers:
production:
host: "stream.binance.com:9443"
pathname: /ws
protocol: wss
description: WebSocket server
development:
host: "stream.binance.com:443"
pathname: /ws
protocol: wss
description: Alternate WebSocket server
channels:
/stream:
address: /stream
messages:
streamManagementResponse.message.0:
$ref: "#/components/messages/StreamControlResponseMessage"
streamManagementResponse.message.1:
$ref: "#/components/messages/ErrorMessage"
streamManagementResponse.message.2:
$ref: "#/components/messages/AggregateTradeStreamMessage"
streamManagementResponse.message.3:
$ref: "#/components/messages/TradeStreamMessage"
streamManagementResponse.message.4:
$ref: "#/components/messages/KlineStreamWithTimezoneOffsetMessage"
streamManagementResponse.message.5:
$ref: "#/components/messages/KlineStreamWithUTCMessage"
streamManagementResponse.message.6:
$ref: "#/components/messages/IndividualSymbolMiniTickerMessage"
streamManagementResponse.message.7:
$ref: "#/components/messages/AllMarketMiniTickersMessage"
streamManagementResponse.message.8:
$ref: "#/components/messages/IndividualSymbolTickerMessage"
streamManagementResponse.message.9:
$ref: "#/components/messages/AllMarketTickersMessage"
streamManagementResponse.message.10:
$ref: "#/components/messages/IndividualSymbolRollingWindowStatisticsMessage"
streamManagementResponse.message.11:
$ref: "#/components/messages/AllMarketRollingWindowStatisticsMessage"
streamManagementResponse.message.12:
$ref: "#/components/messages/IndividualSymbolBookTickerMessage"
streamManagementResponse.message.13:
$ref: "#/components/messages/AveragePriceMessage"
streamManagementResponse.message.14:
$ref: "#/components/messages/PartialBookDepthMessage"
streamManagementResponse.message.15:
$ref: "#/components/messages/DiffDepthMessage"
streamManagementRequest.message:
contentType: application/json
name: StreamControlMessage
payload:
$ref: "#/components/schemas/StreamControlMessagePayload"
description: >
Channel for managing data streams, including subscribing, unsubscribing,
listing subscriptions, setting properties, and handling errors.
operations:
streamManagementResponse:
action: receive
channel:
$ref: "#/channels/~1stream"
summary: Stream management responses
messages:
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.0"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.1"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.2"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.3"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.4"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.5"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.6"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.7"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.8"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.9"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.10"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.11"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.12"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.13"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.14"
- $ref: "#/channels/~1stream/messages/streamManagementResponse.message.15"
streamManagementRequest:
action: send
channel:
$ref: "#/channels/~1stream"
summary: Stream management request
messages:
- $ref: "#/channels/~1stream/messages/streamManagementRequest.message"
components:
schemas:
StreamControl:
type: object
name: StreamControl
required:
- method
- id
properties:
method:
type: string
enum:
- SUBSCRIBE
- UNSUBSCRIBE
- LIST_SUBSCRIPTIONS
- SET_PROPERTY
description: >-
The method to use for subscribing, unsubscribing, listing
subscriptions, or setting a property.
params:
type: array
items:
oneOf:
- type: string
- type: boolean
description: >
The streams to which the client wants to subscribe or unsubscribe,
or the property to set and its value.
id:
type: integer
description: Unique identifier for the request.
StreamControlResponse:
type: object
required:
- result
- id
name: StreamControlResponse
properties:
result:
$ref: "#/components/schemas/StreamResponseArray"
id:
type: integer
description: The ID corresponding to the original request.
StreamResponseArray:
type: array
title: StreamResponseArray
items:
$ref: "#/components/schemas/StreamResponse1"
StreamResponse1:
type: string
example:
- sub1
- sub2
description: |
The list of current subscriptions for `LIST_SUBSCRIPTIONS`.
Error:
type: object
required:
- code
- msg
- id
properties:
code:
type: integer
description: Numeric error code
msg:
type: string
description: Description of the error
id:
type: integer
description: The ID corresponding to the original request that caused the error
AggregateTradeStream:
type: object
properties:
e:
type: string
example: aggTrade
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time
s:
type: string
example: BNBBTC
description: Symbol
a:
type: integer
example: 12345
description: Aggregate trade ID
p:
type: string
example: "0.001"
description: Price
q:
type: string
example: "100"
description: Quantity
f:
type: integer
example: 100
description: First trade ID
l:
type: integer
example: 105
description: Last trade ID
T:
type: integer
format: int64
example: 1672515782136
description: Trade time
m:
type: boolean
example: true
description: Is the buyer the market maker?
M:
type: boolean
example: true
description: Ignore
TradeStream:
type: object
properties:
e:
type: string
example: trade
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time
s:
type: string
example: BNBBTC
description: Symbol
t:
type: integer
example: 12345
description: Trade ID
p:
type: string
example: "0.001"
description: Price
q:
type: string
example: "100"
description: Quantity
T:
type: integer
format: int64
example: 1672515782136
description: Trade time
m:
type: boolean
example: true
description: Is the buyer the market maker?
M:
type: boolean
example: true
description: Ignore
KlineStreamWithTimezoneOffset:
type: object
properties:
e:
type: string
example: kline
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time (Unix timestamp in UTC)
s:
type: string
example: BNBBTC
description: Symbol
k:
$ref: "#/components/schemas/klineInterval"
KlineStreamWithUTC:
type: object
properties:
e:
type: string
example: kline
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time (Unix timestamp in UTC)
s:
type: string
example: BNBBTC
description: Symbol
k:
$ref: "#/components/schemas/klineInterval"
klineInterval:
type: object
properties:
t:
type: integer
format: int64
example: 1672515780000
description: Kline start time (Unix timestamp in UTC)
T:
type: integer
format: int64
example: 1672515839999
description: Kline close time (Unix timestamp in UTC)
s:
type: string
example: BNBBTC
description: Symbol
i:
type: string
example: 1m
description: Interval
f:
type: integer
example: 100
description: First trade ID
L:
type: integer
example: 200
description: Last trade ID
o:
type: string
example: "0.0010"
description: Open price
c:
type: string
example: "0.0020"
description: Close price
h:
type: string
example: "0.0025"
description: High price
l:
type: string
example: "0.0015"
description: Low price
v:
type: string
example: "1000"
description: Base asset volume
"n":
type: integer
example: 100
description: Number of trades
x:
type: boolean
example: false
description: Is this kline closed?
q:
type: string
example: "1.0000"
description: Quote asset volume
V:
type: string
example: "500"
description: Taker buy base asset volume
Q:
type: string
example: "0.500"
description: Taker buy quote asset volume
B:
type: string
example: "123456"
description: Ignore
IndividualSymbolMiniTicker:
type: object
name: IndividualSymbolMiniTicker
properties:
e:
type: string
example: 24hrMiniTicker
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time (Unix timestamp in UTC)
s:
type: string
example: BNBBTC
description: Symbol
c:
type: string
example: "0.0025"
description: Close price
o:
type: string
example: "0.0010"
description: Open price
h:
type: string
example: "0.0025"
description: High price
l:
type: string
example: "0.0010"
description: Low price
v:
type: string
example: "10000"
description: Total traded base asset volume
q:
type: string
example: "18"
description: Total traded quote asset volume
AllMarketMiniTickers:
type: array
items:
$ref: "#/components/schemas/AllMarketMiniTicker"
AllMarketMiniTicker:
type: object
properties:
e:
type: string
example: 24hrMiniTicker
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time (Unix timestamp in UTC)
s:
type: string
example: BNBBTC
description: Symbol
c:
type: string
example: "0.0025"
description: Close price
o:
type: string
example: "0.0010"
description: Open price
h:
type: string
example: "0.0025"
description: High price
l:
type: string
example: "0.0010"
description: Low price
v:
type: string
example: "10000"
description: Total traded base asset volume
q:
type: string
example: "18"
description: Total traded quote asset volume
IndividualSymbolTicker:
type: object
name: Individual symbol ticket
properties:
e:
type: string
example: 24hrTicker
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time (Unix timestamp in UTC)
s:
type: string
example: BNBBTC
description: Symbol
p:
type: string
example: "0.0015"
description: Price change
P:
type: string
example: "250.00"
description: Price change percent
w:
type: string
example: "0.0018"
description: Weighted average price
x:
type: string
example: "0.0009"
description: First trade(F)-1 price (first trade before the 24hr rolling window)
c:
type: string
example: "0.0025"
description: Last price
Q:
type: string
example: "10"
description: Last quantity
b:
type: string
example: "0.0024"
description: Best bid price
B:
type: string
example: "10"
description: Best bid quantity
a:
type: string
example: "0.0026"
description: Best ask price
A:
type: string
example: "100"
description: Best ask quantity
o:
type: string
example: "0.0010"
description: Open price
h:
type: string
example: "0.0025"
description: High price
l:
type: string
example: "0.0010"
description: Low price
v:
type: string
example: "10000"
description: Total traded base asset volume
q:
type: string
example: "18"
description: Total traded quote asset volume
O:
type: integer
example: 0
description: Statistics open time
C:
type: integer
example: 86400000
description: Statistics close time
F:
type: integer
example: 0
description: First trade ID
L:
type: integer
example: 18150
description: Last trade ID
"n":
type: integer
example: 18151
description: Total number of trades
AllMarketTickers:
type: array
items:
$ref: "#/components/schemas/AllMarketTicker"
AllMarketTicker:
type: object
properties:
e:
type: string
example: 24hrTicker
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time (Unix timestamp in UTC)
s:
type: string
example: BNBBTC
description: Symbol
p:
type: string
example: "0.0015"
description: Price change
P:
type: string
example: "250.00"
description: Price change percent
w:
type: string
example: "0.0018"
description: Weighted average price
x:
type: string
example: "0.0009"
description: First trade(F)-1 price (first trade before the 24hr rolling window)
c:
type: string
example: "0.0025"
description: Last price
Q:
type: string
example: "10"
description: Last quantity
b:
type: string
example: "0.0024"
description: Best bid price
B:
type: string
example: "10"
description: Best bid quantity
a:
type: string
example: "0.0026"
description: Best ask price
A:
type: string
example: "100"
description: Best ask quantity
o:
type: string
example: "0.0010"
description: Open price
h:
type: string
example: "0.0025"
description: High price
l:
type: string
example: "0.0010"
description: Low price
v:
type: string
example: "10000"
description: Total traded base asset volume
q:
type: string
example: "18"
description: Total traded quote asset volume
O:
type: integer
example: 0
description: Statistics open time
C:
type: integer
example: 86400000
description: Statistics close time
F:
type: integer
example: 0
description: First trade ID
L:
type: integer
example: 18150
description: Last trade ID
"n":
type: integer
example: 18151
description: Total number of trades
IndividualSymbolRollingWindowStatistics:
type: object
properties:
e:
type: string
example: 1hTicker
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time (Unix timestamp in UTC)
s:
type: string
example: BNBBTC
description: Symbol
p:
type: string
example: "0.0015"
description: Price change
P:
type: string
example: "250.00"
description: Price change percent
o:
type: string
example: "0.0010"
description: Open price
h:
type: string
example: "0.0025"
description: High price
l:
type: string
example: "0.0010"
description: Low price
c:
type: string
example: "0.0025"
description: Last price
w:
type: string
example: "0.0018"
description: Weighted average price
v:
type: string
example: "10000"
description: Total traded base asset volume
q:
type: string
example: "18"
description: Total traded quote asset volume
O:
type: integer
example: 0
description: Statistics open time
C:
type: integer
format: int64
example: 1675216573749
description: Statistics close time (Unix timestamp in UTC)
F:
type: integer
example: 0
description: First trade ID
L:
type: integer
example: 18150
description: Last trade ID
"n":
type: integer
example: 18151
description: Total number of trades
AllMarketRollingWindowStatistics:
type: array
items:
$ref: "#/components/schemas/AllMarketRollingWindowStat"
AllMarketRollingWindowStat:
type: object
properties:
e:
type: string
example: 1hTicker
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time (Unix timestamp in UTC)
s:
type: string
example: BNBBTC
description: Symbol
p:
type: string
example: "0.0015"
description: Price change
P:
type: string
example: "250.00"
description: Price change percent
o:
type: string
example: "0.0010"
description: Open price
h:
type: string
example: "0.0025"
description: High price
l:
type: string
example: "0.0010"
description: Low price
c:
type: string
example: "0.0025"
description: Last price
w:
type: string
example: "0.0018"
description: Weighted average price
v:
type: string
example: "10000"
description: Total traded base asset volume
q:
type: string
example: "18"
description: Total traded quote asset volume
O:
type: integer
example: 0
description: Statistics open time
C:
type: integer
format: int64
example: 1675216573749
description: Statistics close time (Unix timestamp in UTC)
F:
type: integer
example: 0
description: First trade ID
L:
type: integer
example: 18150
description: Last trade ID
"n":
type: integer
example: 18151
description: Total number of trades
IndividualSymbolBookTicker:
type: object
properties:
u:
type: integer
example: 400900217
description: Order book update ID
s:
type: string
example: BNBUSDT
description: Symbol
b:
type: string
example: "25.35190000"
description: Best bid price
B:
type: string
example: "31.21000000"
description: Best bid quantity
a:
type: string
example: "25.36520000"
description: Best ask price
A:
type: string
example: "40.66000000"
description: Best ask quantity
AveragePrice:
type: object
properties:
e:
type: string
example: avgPrice
description: Event type
E:
type: integer
format: int64
example: 1693907033000
description: Event time (Unix timestamp in UTC)
s:
type: string
example: BTCUSDT
description: Symbol
i:
type: string
example: 5m
description: Average price interval
w:
type: string
example: "25776.86000000"
description: Average price
T:
type: integer
format: int64
example: 1693907032213
description: Last trade time (Unix timestamp in UTC)
PartialBookDepth:
type: object
properties:
lastUpdateId:
type: integer
format: int64
example: 160
description: Last update ID
bids:
type: array
items:
$ref: "#/components/schemas/PartialBookBids"
description: List of bids to be updated
asks:
type: array
items:
type: array
items:
$ref: "#/components/schemas/PartialBookBids"
description: List of asks to be updated
PartialBookBids:
type: array
items:
type: string
example: "0.0024"
description: Price level or quantity
DiffDepth:
type: object
properties:
e:
type: string
example: depthUpdate
description: Event type
E:
type: integer
format: int64
example: 1672515782136
description: Event time (Unix timestamp in UTC)
s:
type: string
example: BNBBTC
description: Symbol
U:
type: integer
format: int64
example: 157
description: First update ID in the event
u:
type: integer
format: int64
example: 160
description: Final update ID in the event
b:
type: array
items:
type: array
items:
$ref: "#/components/schemas/PartialBookBids"
description: List of bids to be updated
a:
type: array
items:
type: array
items:
$ref: "#/components/schemas/PartialBookBids"
StreamControlMethod:
type: string
enum:
- SUBSCRIBE
- UNSUBSCRIBE
- LIST_SUBSCRIPTIONS
- SET_PROPERTY
description: >-
The method to use for subscribing, unsubscribing, listing subscriptions,
or setting a property.