LighterTradeAmounts
Documentation for eth_defi.lighter.api.LighterTradeAmounts Python class.
- class LighterTradeAmounts
Bases:
objectUSDC and ETH sizes used by a Lighter manual trade.
- Parameters
deposit_usdc – Suggested USDC deposit amount.
position_usdc – Effective ETH long notional in USDC.
base_amount – Lighter integer base amount for the ETH market order.
max_buy_price – Worst acceptable buy price in Lighter integer price units.
min_quote_amount – ETH market minimum quote amount, as reported by Lighter.
min_base_amount – ETH market minimum base amount, as reported by Lighter.
Attributes summary
deposit_usdcposition_usdcbase_amountmax_buy_pricemin_quote_amountmin_base_amountMethods summary
__init__(deposit_usdc, position_usdc, ...)- __init__(deposit_usdc, position_usdc, base_amount, max_buy_price, min_quote_amount, min_base_amount)
- Parameters
deposit_usdc (decimal.Decimal) –
position_usdc (decimal.Decimal) –
base_amount (int) –
max_buy_price (int) –
min_quote_amount (decimal.Decimal) –
min_base_amount (decimal.Decimal) –
- Return type
None