LighterTradeAmounts

Documentation for eth_defi.lighter.api.LighterTradeAmounts Python class.

class LighterTradeAmounts

Bases: object

USDC 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_usdc

position_usdc

base_amount

max_buy_price

min_quote_amount

min_base_amount

Methods summary

__init__(deposit_usdc, position_usdc, ...)

__init__(deposit_usdc, position_usdc, base_amount, max_buy_price, min_quote_amount, min_base_amount)
Parameters
Return type

None