File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
nautilus_trader/adapters/dydx/common Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,7 @@ class DYDXOraclePrice(Data):
62
62
metadata = {"type" : "DYDXOraclePrice" },
63
63
)
64
64
65
- @staticmethod
66
- def to_dict (obj : DYDXOraclePrice ) -> dict [str , Any ]:
65
+ def to_dict (self , to_arrow = False ) -> dict [str , Any ]:
67
66
"""
68
67
Return a dictionary representation of this object.
69
68
@@ -73,10 +72,10 @@ def to_dict(obj: DYDXOraclePrice) -> dict[str, Any]:
73
72
74
73
"""
75
74
return {
76
- "instrument_id" : obj .instrument_id .value ,
77
- "price" : str (obj .price ),
78
- "ts_event" : obj .ts_event ,
79
- "ts_init" : obj .ts_init ,
75
+ "instrument_id" : self .instrument_id .value ,
76
+ "price" : str (self .price ),
77
+ "ts_event" : self .ts_event ,
78
+ "ts_init" : self .ts_init ,
80
79
}
81
80
82
81
@staticmethod
You can’t perform that action at this time.
0 commit comments