@@ -52,6 +52,13 @@ pub enum SpotMetaAndAssetCtxs {
5252 Context ( Vec < SpotAssetContext > ) ,
5353}
5454
55+ #[ derive( Deserialize , Debug , Clone ) ]
56+ #[ serde( untagged) ]
57+ pub enum MetaAndAssetCtxs {
58+ Meta ( Meta ) ,
59+ Context ( Vec < AssetContext > ) ,
60+ }
61+
5562#[ derive( Deserialize , Debug , Clone ) ]
5663#[ serde( rename_all = "camelCase" ) ]
5764pub struct SpotAssetContext {
@@ -63,11 +70,28 @@ pub struct SpotAssetContext {
6370 pub coin : String ,
6471}
6572
73+ #[ derive( Deserialize , Debug , Clone ) ]
74+ #[ serde( rename_all = "camelCase" ) ]
75+ pub struct AssetContext {
76+ pub day_ntl_vlm : String ,
77+ pub funding : String ,
78+ pub impact_pxs : Vec < String > ,
79+ pub mark_px : String ,
80+ pub mid_px : Option < String > ,
81+ pub open_interest : String ,
82+ pub oracle_px : String ,
83+ pub premium : String ,
84+ pub prev_day_px : String ,
85+ }
86+
6687#[ derive( Deserialize , Debug , Clone ) ]
6788#[ serde( rename_all = "camelCase" ) ]
6889pub struct AssetMeta {
6990 pub name : String ,
7091 pub sz_decimals : u32 ,
92+ pub max_leverage : usize ,
93+ #[ serde( default ) ]
94+ pub only_isolated : Option < bool > ,
7195}
7296
7397#[ derive( Deserialize , Debug , Clone ) ]
0 commit comments