API documentation

get/wallet/portfolio-info

getPortfolioInfo()

Parameters

id

number

Required

Return type

Promise<{ portfolio: PortfolioInfo; positions: PortfolioPosition[] }>

Related contracts

interfacePortfolioInfo
export interface PortfolioInfo {
  currencyId: number;
  currencyName: string;
  accountValue: number;
  positionValue: number;
  pnL: number;
  uPnL: number;
  equity: number;
  balance: number;
  exposure: number;
  marginUsed: number;
  marginAvailable: number;
}
export interface PortfolioPosition {
  symbol: string;
  exchange: string;
  instrument: PortfolioInstrument;
  qty: number;
  longQty: number;
  shortQty: number;
  avgPrice: number;
  price: number;
  openValue: number;
  value: number;
  valueCCY: number;
  pnL: number;
  pnLCCY: number;
  uPnL: number;
  uPnLCCY: number;
  fxccy: string;
}

HTTP mapping

GET /wallet/portfolio-info

Alipay
Stripe
Eurex
AWS
Azure
Google Cloud
Currenex
Velocity Trade
Bitcoin
CME
Interactive Brokers
Kraken
FIX API
XTX
Bloomberg
Binance

Lanza tu plataforma.

Empieza.