Skip to content

Commit

Permalink
Types: Update for high leverage mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaKhalili committed Nov 16, 2024
1 parent e107ec0 commit 260557f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/driftpy/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,13 @@ class UserStatus:
BEING_LIQUIDATED = 1
BANKRUPT = 2
REDUCE_ONLY = 4
ADVANCED_UP = 8


@_rust_enum
class MarginMode:
Default = constructor()
HighLeverage = constructor()


@_rust_enum
Expand Down Expand Up @@ -870,7 +877,7 @@ class UserAccount:
has_open_order: bool
open_auctions: int
has_open_auction: bool
last_fuel_bonus_update_ts: int
margin_mode: MarginMode
padding: list[int] = field(default_factory=lambda: [0] * 21)


Expand Down

0 comments on commit 260557f

Please sign in to comment.