Nado Typescript SDK Documentation
    Preparing search index...

    Class SpotAPI

    Combined Spot trading API providing both execution and query functionality

    Hierarchy

    Index

    Constructors

    Properties

    Methods

    • Retrieves the ERC20 token contract for a spot product

      Parameters

      Returns Promise<ContractInstance<readonly [{}, {}, {}, {}, {}, {}, {}, {}]>>

    • Parameters

      • params: DepositCollateralParams

      Returns Promise<`0x${string}`>

    • Transfers quote between subaccounts under the same wallet.

      Parameters

      Returns Promise<EngineServerExecuteSuccessResult<"transfer_quote">>

    • Parameters

      Returns Promise<EngineServerExecuteSuccessResult<"mint_nlp">>

    • Parameters

      Returns Promise<EngineServerExecuteSuccessResult<"burn_nlp">>

    • Gets the estimated max withdrawable amount for a product

      Parameters

      • params: GetEngineMaxWithdrawableParams

      Returns Promise<BigNumber>

    • Queries engine to determine maximum quote amount for minting NLP.

      Parameters

      • params: GetEngineMaxMintNlpAmountParams

      Returns Promise<BigNumber>

    • Helper to get current token balance in the user's wallet (i.e. not in a Nado subaccount)

      Parameters

      Returns Promise<bigint>