Skip to content

Commit 652e3a3

Browse files
committed
add back removed optionals
1 parent 767bd69 commit 652e3a3

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

lighter/models/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Account(BaseModel):
3434
cancel_all_time: StrictInt
3535
total_order_count: StrictInt
3636
pending_order_count: StrictInt
37-
available_balance: StrictStr
37+
available_balance: Optional[StrictStr]
3838
status: StrictInt
3939
collateral: StrictStr
4040
additional_properties: Dict[str, Any] = {}

lighter/models/account_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class AccountStats(BaseModel):
3030
collateral: StrictStr
3131
portfolio_value: StrictStr
3232
leverage: StrictStr
33-
available_balance: StrictStr
33+
available_balance: Optional[StrictStr]
3434
margin_usage: StrictStr
3535
buying_power: StrictStr
3636
cross_stats: AccountMarginStats

lighter/models/detailed_account.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class DetailedAccount(BaseModel):
3838
cancel_all_time: StrictInt
3939
total_order_count: StrictInt
4040
pending_order_count: StrictInt
41-
available_balance: StrictStr
41+
available_balance: Optional[StrictStr]
4242
status: StrictInt
4343
collateral: StrictStr
4444
account_index: StrictInt
@@ -50,7 +50,7 @@ class DetailedAccount(BaseModel):
5050
assets: List[AccountAsset]
5151
total_asset_value: StrictStr
5252
cross_asset_value: StrictStr
53-
pool_info: PublicPoolInfo
53+
pool_info: Optional[PublicPoolInfo]
5454
shares: List[PublicPoolShare]
5555
additional_properties: Dict[str, Any] = {}
5656
__properties: ClassVar[List[str]] = ["code", "message", "account_type", "index", "l1_address", "cancel_all_time", "total_order_count", "pending_order_count", "available_balance", "status", "collateral", "account_index", "name", "description", "can_invite", "referral_points_percentage", "positions", "assets", "total_asset_value", "cross_asset_value", "pool_info", "shares"]

lighter/models/trade.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ class Trade(BaseModel):
4242
is_maker_ask: StrictBool
4343
block_height: StrictInt
4444
timestamp: StrictInt
45-
taker_fee: StrictInt
45+
taker_fee: Optional[StrictInt]
4646
taker_position_size_before: StrictStr
4747
taker_entry_quote_before: StrictStr
48-
taker_initial_margin_fraction_before: StrictInt
49-
taker_position_sign_changed: StrictBool
50-
maker_fee: StrictInt
48+
taker_initial_margin_fraction_before: Optional[StrictInt]
49+
taker_position_sign_changed: Optional[StrictBool]
50+
maker_fee: Optional[StrictInt]
5151
maker_position_size_before: StrictStr
5252
maker_entry_quote_before: StrictStr
53-
maker_initial_margin_fraction_before: StrictInt
54-
maker_position_sign_changed: StrictBool
53+
maker_initial_margin_fraction_before: Optional[StrictInt]
54+
maker_position_sign_changed: Optional[StrictBool]
5555
additional_properties: Dict[str, Any] = {}
5656
__properties: ClassVar[List[str]] = ["trade_id", "tx_hash", "type", "market_id", "size", "price", "usd_amount", "ask_id", "bid_id", "ask_client_id", "bid_client_id", "ask_account_id", "bid_account_id", "is_maker_ask", "block_height", "timestamp", "taker_fee", "taker_position_size_before", "taker_entry_quote_before", "taker_initial_margin_fraction_before", "taker_position_sign_changed", "maker_fee", "maker_position_size_before", "maker_entry_quote_before", "maker_initial_margin_fraction_before", "maker_position_sign_changed"]
5757

0 commit comments

Comments
 (0)