You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/jupiter_python_sdk/jupiter.py
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -649,7 +649,8 @@ async def swap(
649
649
as_legacy_transaction: bool=False,
650
650
exclude_dexes: list=None,
651
651
max_accounts: int=None,
652
-
platform_fee_bps: int=None
652
+
platform_fee_bps: int=None,
653
+
dynamic_compute_limit: bool=False
653
654
) ->str:
654
655
"""Perform a swap.
655
656
@@ -667,7 +668,8 @@ async def swap(
667
668
``as_legacy_transaction (bool)``: Default is False. Instead of using versioned transaction, this will use the legacy transaction.\n
668
669
``exclude_dexes (list)``: Default is that all DEXes are included. You can pass in the DEXes that you want to exclude in a list. For example, ['Aldrin','Saber'].\n
669
670
``max_accounts (int)``: Find a route given a maximum number of accounts involved, this might dangerously limit routing ending up giving a bad price. The max is an estimation and not the exact count.\n
670
-
``platform_fee_bps (int)``: If you want to charge the user a fee, you can specify the fee in BPS. Fee % is taken out of the output token.
671
+
``platform_fee_bps (int)``: If you want to charge the user a fee, you can specify the fee in BPS. Fee % is taken out of the output token.\n
672
+
``dynamic_compute_limit (bool)``: Enable dynamic compute limit for the transaction. Default is False.
671
673
672
674
Returns:
673
675
``str``: returns serialized transactions to perform the swap from https://quote-api.jup.ag/v6/swap
0 commit comments