Skip to content

Commit

Permalink
add optional arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-kal committed Dec 6, 2021
1 parent a08eed7 commit ffb44d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ async def main() -> None:
price=41027,
quantity=0.01,
leverage=0.7,
is_buy=True,
is_reduce_only=False
is_buy=True
),
composer.DerivativeOrder(
market_id=market_id,
Expand Down
4 changes: 2 additions & 2 deletions pyinjective/composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def DerivativeOrder(
fee_recipient: str,
price: float,
quantity: float,
leverage: float,
leverage: float = 1,
is_buy: bool,
is_reduce_only: bool
is_reduce_only: bool = False
):
# load denom metadata
denom = Denom.load_market(self.network, market_id)
Expand Down

0 comments on commit ffb44d4

Please sign in to comment.