API 文档

get/api/v1/Trade/portfolio-value

Returns account portfolio summary (balance, equity, margin, PnL) for a trading account owned by the caller — same trailing fields as SignalR {PortfolioUpdated}.

Trade

参数

accountId

query · integer

必需的

version

path · string

必需的

响应

  • 200Portfolio value summary.application/json
    {
      "currencyName": "USD",
      "currencyId": 148,
      "value": 62672.26,
      "accountValue": -62480.34,
      "positionValue": 130703.58,
      "pnL": -188524.42,
      "uPnL": -53007.39,
      "equity": 62672.26,
      "balance": 115679.65,
      "exposure": 130703.62,
      "marginUsed": 1307.03,
      "marginAvailable": 61365.23
    }
  • 400Invalid account.application/json
    {
      "status": "rejected",
      "message": "Validation failed."
    }
  • 403Caller lacks Trading claim or account not owned.
Alipay
Stripe
Eurex
AWS
Azure
Google Cloud
Currenex
Velocity Trade
Bitcoin
CME
Interactive Brokers
Kraken
FIX API
XTX
Bloomberg
Binance

启动您的平台。

开始使用。