File tree Expand file tree Collapse file tree
mocks/v2/snapshot/locale/us/markets/stocks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ class MinuteSnapshot:
1616 volume : Optional [float ] = None
1717 vwap : Optional [float ] = None
1818 otc : Optional [bool ] = None
19+ timestamp : Optional [int ] = None
20+ transactions : Optional [int ] = None
1921
2022 @staticmethod
2123 def from_dict (d ):
@@ -28,6 +30,8 @@ def from_dict(d):
2830 d .get ("v" , None ),
2931 d .get ("vw" , None ),
3032 d .get ("otc" , None ),
33+ d .get ("t" , None ),
34+ d .get ("n" , None ),
3135 )
3236
3337
Original file line number Diff line number Diff line change 3535 "l" : 6.42 ,
3636 "o" : 6.49 ,
3737 "v" : 2671 ,
38- "vw" : 6.4604
38+ "vw" : 6.4604 ,
39+ "t" : 1684428600000 ,
40+ "n" : 5
3941 },
4042 "prevDay" : {
4143 "c" : 0.29 ,
8183 "l" : 4.2107 ,
8284 "o" : 4.2107 ,
8385 "v" : 1012 ,
84- "vw" : 4.2107
86+ "vw" : 4.2107 ,
87+ "t" : 1684428600000 ,
88+ "n" : 5
8589 },
8690 "prevDay" : {
8791 "c" : 0.1953 ,
Original file line number Diff line number Diff line change 3232 "l" : 160.3 ,
3333 "o" : 160.71 ,
3434 "v" : 197226 ,
35- "vw" : 160.5259
35+ "vw" : 160.5259 ,
36+ "t" : 1684428600000 ,
37+ "n" : 5
3638 },
3739 "prevDay" : {
3840 "c" : 163.64 ,
Original file line number Diff line number Diff line change 3636 "l" : 20.506 ,
3737 "o" : 20.506 ,
3838 "v" : 5000 ,
39- "vw" : 20.5105
39+ "vw" : 20.5105 ,
40+ "t" : 1684428600000 ,
41+ "n" : 5
4042 },
4143 "prevDay" : {
4244 "c" : 20.63 ,
Original file line number Diff line number Diff line change @@ -186,6 +186,8 @@ def test_get_snapshot_all(self):
186186 close = 20.506 ,
187187 volume = 5000 ,
188188 vwap = 20.5105 ,
189+ timestamp = 1684428600000 ,
190+ transactions = 5 ,
189191 ),
190192 prev_day = Agg (
191193 open = 20.79 ,
@@ -257,6 +259,8 @@ def test_get_snapshot_ticker(self):
257259 close = 160.3 ,
258260 volume = 197226 ,
259261 vwap = 160.5259 ,
262+ timestamp = 1684428600000 ,
263+ transactions = 5 ,
260264 ),
261265 prev_day = Agg (
262266 open = 159.25 ,
You can’t perform that action at this time.
0 commit comments