Providers Package
Provider API Reference
Types
Trading

Type: Trading

MarketPair

This type represents a market pair.

type MarketPair = {
  pairSymbol: string;
  base: string;
  quote: string;
  type: WalletType;
  taker: number;
  maker: number;
  active: boolean;
  precision: {
    amount: number;
    price: number;
    base: number;
    quote: number;
  };
  limits: {
    amount: {
      min: number;
      max: number;
    };
    price: {
      min: number;
      max: number;
    };
    cost: {
      min: number;
    };
    market: {
      min: number;
      max: number;
    };
  };
};

MarketRate

This type represents market rate.

type MarketRate = {
  bid: string;
  ask: string;
};

Order

This type represents an order.

type Order = {
  id: string;
  timestamp: number;
  status: "open" | "closed" | "canceled";
  pairSymbol: string;
  type: "limit" | "market";
  side: "buy" | "sell";
  price: number;
  amount: number;
  filled: number;
  fee: Fee;
};