Skip to main content
GET
/
executors
/
positions
/
{connector_name}
/
{trading_pair}
Get Position Held
curl --request GET \
  --url http://localhost:8000/executors/positions/{connector_name}/{trading_pair} \
  --header 'Authorization: Basic <encoded-value>'
{
  "trading_pair": "<string>",
  "connector_name": "<string>",
  "account_name": "<string>",
  "buy_amount_base": 123,
  "buy_amount_quote": 123,
  "sell_amount_base": 123,
  "sell_amount_quote": 123,
  "net_amount_base": 123,
  "buy_breakeven_price": 123,
  "sell_breakeven_price": 123,
  "matched_amount_base": 123,
  "unmatched_amount_base": 123,
  "position_side": "<string>",
  "realized_pnl_quote": 123,
  "executor_count": 123,
  "executor_ids": [
    "<string>"
  ],
  "last_updated": "<string>",
  "unrealized_pnl_quote": 123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

connector_name
string
required
trading_pair
string
required

Query Parameters

account_name
string
default:master_account

Response

Successful Response

API response model for PositionHold.

trading_pair
string
required
connector_name
string
required
account_name
string
required
buy_amount_base
number
required
buy_amount_quote
number
required
sell_amount_base
number
required
sell_amount_quote
number
required
net_amount_base
number
required
buy_breakeven_price
number | null
required
sell_breakeven_price
number | null
required
matched_amount_base
number
required
unmatched_amount_base
number
required
position_side
string | null
required
realized_pnl_quote
number
required
executor_count
integer
required
executor_ids
string[]
required
last_updated
string | null
required
unrealized_pnl_quote
number | null