Market

The Market type represents a trading pair's attributes and its blockchain details.

interface Market {
  symbol: string;
  base_ticker: string;
  base_ticker_address: `0x${string}`;
  base_ticker_decimal_places: number;
  base_ticker_display: string;
  base_ticker_faucet_amount: string;
  base_ticker_icon_url: string;
  base_ticker_native_price: string;
  base_ticker_precision: number;
  quote_ticker: string;
  quote_ticker_address: `0x${string}`;
  quote_ticker_decimal_places: number;
  quote_ticker_display: string;
  quote_ticker_faucet_amount: string;
  quote_ticker_icon_url: string;
  quote_ticker_native_price: string;
  quote_ticker_precision: number;
  min_fee_rate: string;
  min_quote_amount: string;
  chain: {
    id: string;
    chainid: number;
    dex_manager_contract: string;
    entry_point_contract: string;
    gas_price: string;
    gas_usage: string;
    icon_url: string;
    network_name: string;
    project_name: string;
    rpcurl: string;
    type: number;
  };
}

Properties

  • symbol: string

    • A market symbol.

    • It is a combination of a base ticker, a colon, and a quote ticker.

    • E.g., ETH_ETHSEPOLIA:USDT_ETHSEPOLIA

  • base_ticker: string

    • A ticker of the base token.

    • It is a combination of a base symbol, an underscore, and a chain symbol.

    • E.g., ETH_ETHSEPOLIA

  • base_ticker_address: `0x${string}`

    • A contract address of the base token.

    • If the base token is a native token, it is a zero address.

  • base_ticker_decimal_places: number

    • The number of decimal places to display for the base currency's unit value.

  • base_ticker_display: string

    • A symbol of the base token.

  • base_ticker_faucet_amount: string

    • The amount of base token one can receive by submitting an email.

  • base_ticker_icon_url: string

    • An icon image URL of the base token.

  • base_ticker_native_price: string

    • The valuation of a single unit of the base token in terms of the native token's equivalent value.

  • base_ticker_precision: number

    • The maximum number of decimal places supported for transactions involving the base token.

  • quote_ticker: string

    • A ticker of the quote token.

    • It is a combination of a quote symbol, an underscore, and a chain symbol.

    • E.g., USDT_ETHSEPOLIA

  • quote_ticker_address: `0x${string}`

    • A contract address of the quote token.

    • If the quote token is a native token, it is a zero address.

  • quote_ticker_decimal_places: number

    • The number of decimal places to display for the quote currency's unit value.

  • quote_ticker_display: string

    • A symbol of the quote token.

  • quote_ticker_faucet_amount: string

    • The amount of quote token one can receive by submitting an email.

  • quote_ticker_icon_url: string

    • An icon image URL of the quote token.

  • quote_ticker_native_price: string

    • The valuation of a single unit of the quote token in terms of the native token's equivalent value.

  • quote_ticker_precision: number

    • The maximum number of decimal places supported for transactions involving the quote token.

  • min_fee_rate: string

    • The minimum fee rate imposed on transactions within the market.

  • min_quote_amount: string

    • The minimum order amount.

  • chain

    • id: string

      • A chain ID, which is a unique value created by Nectar.

    • chainid: number

      • A chain ID of the blockchain network.

    • dex_manager_contract: string

      • A contract address of the DEX manager of the blockchain network.

    • entry_point_contract: string

      • A contract address of the entry point of the blockchain network.

    • gas_price: string

      • A gas price.

      • It is a value that fluctuates in real time.

    • gas_usage: string

      • A gas usage of the market.

      • It is a fixed value.

    • icon_url: string

      • An icon image URL of the chain.

    • network_name: string

      • A displayable name of the chain.

    • project_name: string

      • A name of the chain.

    • rpcurl: string

      • A RPC URL.

    • type: ChainType

      • A type of smart contract engine.

Last updated