This repository was archived by the owner on Mar 23, 2022. It is now read-only.
File tree 1 file changed +69
-1
lines changed
1 file changed +69
-1
lines changed Original file line number Diff line number Diff line change @@ -1843,6 +1843,32 @@ components:
1843
1843
- status_to
1844
1844
- reason
1845
1845
- at
1846
+ TradeUpdatesEvent :
1847
+ description : ' '
1848
+ type : object
1849
+ title : TradeUpdatesEvent
1850
+ properties :
1851
+ account_id :
1852
+ type : string
1853
+ minLength : 1
1854
+ at :
1855
+ type : string
1856
+ minLength : 1
1857
+ event :
1858
+ type : string
1859
+ event_id :
1860
+ type : integer
1861
+ execution_id :
1862
+ type : integer
1863
+ order :
1864
+ $ref : ' #/components/schemas/Order'
1865
+ required :
1866
+ - account_id
1867
+ - at
1868
+ - event
1869
+ - event_id
1870
+ - execution_id
1871
+ - order
1846
1872
Watchlist :
1847
1873
title : Watchlist
1848
1874
type : object
@@ -1866,7 +1892,6 @@ components:
1866
1892
format : date-time
1867
1893
name :
1868
1894
type : string
1869
- pattern : ' ^[a-zA-Z0-9]+$'
1870
1895
assets :
1871
1896
type : array
1872
1897
items :
@@ -2983,6 +3008,49 @@ paths:
2983
3008
schema :
2984
3009
$ref : ' #/components/schemas/AccountStatusEvent'
2985
3010
examples : {}
3011
+ /events/trades :
3012
+ get :
3013
+ security :
3014
+ - BasicAuth : [ ]
3015
+ summary : Subscribe to events related to trade updates (SSE).
3016
+ tags :
3017
+ - Trading
3018
+ - Events
3019
+ description : |
3020
+ Query Params Rules:
3021
+ - `since` required if `until` specified
3022
+ - `since_id` required if `until_id` specified
3023
+ - `since` and `since_id` can’t be used at the same time
3024
+ Behavior:
3025
+ - if `since` or `since_id` not specified this will not return any historic data
3026
+ - if `until` or `until_id` reached stream will end (status 200)
3027
+ parameters :
3028
+ - name : since
3029
+ in : query
3030
+ schema :
3031
+ type : string
3032
+ format : date-time
3033
+ - name : until
3034
+ in : query
3035
+ schema :
3036
+ type : string
3037
+ format : date-time
3038
+ - name : since_id
3039
+ in : query
3040
+ schema :
3041
+ type : integer
3042
+ - name : until_id
3043
+ in : query
3044
+ schema :
3045
+ type : integer
3046
+ responses :
3047
+ ' 200 ' :
3048
+ description : Connected.
3049
+ content :
3050
+ application/json :
3051
+ schema :
3052
+ $ref : ' #/components/schemas/TradeUpdatesEvent'
3053
+ examples : { }
2986
3054
/events/journals/status :
2987
3055
get :
2988
3056
security :
You can’t perform that action at this time.
0 commit comments