Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-kal committed Dec 6, 2021
1 parent ffb44d4 commit 3dd9e6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,15 @@ async def main() -> None:
fee_recipient=fee_recipient,
price=41027,
quantity=0.01,
is_buy=True,
leverage=0.7,
is_buy=True
),
composer.DerivativeOrder(
market_id=market_id,
subaccount_id=subaccount_id,
fee_recipient=fee_recipient,
price=62140,
quantity=0.01,
leverage=1.4,
is_buy=False,
is_reduce_only=True
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ async def main() -> None:
fee_recipient=fee_recipient,
price=50000,
quantity=0.1,
leverage=1,
is_buy=False,
leverage=1,
is_reduce_only=False
)

Expand Down
2 changes: 1 addition & 1 deletion pyinjective/composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def DerivativeOrder(
fee_recipient: str,
price: float,
quantity: float,
leverage: float = 1,
is_buy: bool,
leverage: float = 1,
is_reduce_only: bool = False
):
# load denom metadata
Expand Down

0 comments on commit 3dd9e6f

Please sign in to comment.