Get a quote
curl --request POST \
--url https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"outcomeId": "<string>",
"amount": "<string>",
"shares": "<string>",
"slippageBps": 1,
"venues": [
"<string>"
]
}
'import requests
url = "https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes"
payload = {
"outcomeId": "<string>",
"amount": "<string>",
"shares": "<string>",
"slippageBps": 1,
"venues": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
outcomeId: '<string>',
amount: '<string>',
shares: '<string>',
slippageBps: 1,
venues: ['<string>']
})
};
fetch('https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'outcomeId' => '<string>',
'amount' => '<string>',
'shares' => '<string>',
'slippageBps' => 1,
'venues' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes"
payload := strings.NewReader("{\n \"outcomeId\": \"<string>\",\n \"amount\": \"<string>\",\n \"shares\": \"<string>\",\n \"slippageBps\": 1,\n \"venues\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"outcomeId\": \"<string>\",\n \"amount\": \"<string>\",\n \"shares\": \"<string>\",\n \"slippageBps\": 1,\n \"venues\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"outcomeId\": \"<string>\",\n \"amount\": \"<string>\",\n \"shares\": \"<string>\",\n \"slippageBps\": 1,\n \"venues\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"quoteId": "<string>",
"status": "<string>",
"expiresAt": "<string>",
"refreshAt": "<string>",
"venueMarketId": "<string>",
"venueMarketOutcomeId": "<string>",
"estimatedCostRaw": "<string>",
"rawExecCost": 123,
"totalFilled": 123,
"solveTimeMs": 123,
"verifyTimeMs": 123,
"fills": [
{
"venue": "<string>",
"venueMarketId": "<string>",
"venueMarketOutcomeId": "<string>",
"chain": "<string>",
"avgPrice": 123,
"yesPrice": 123,
"noPrice": 123,
"fills": [
{
"price": 123,
"size": 123,
"fill": 123
}
],
"venueQty": 123,
"inAmount": "<string>",
"outAmount": "<string>",
"limitPriceMicroUsdc": "<string>",
"executionBackend": "<string>",
"venueAccountId": "<string>",
"venueFee": 123,
"builderFee": 123,
"settlementFee": 123,
"executionReserve": 123,
"feeReserve": 123,
"bookAgeMs": 123,
"freshnessRow": "<string>"
}
],
"matchedMarkets": [
{
"venue": "<string>",
"venueMarketId": "<string>"
}
],
"error": "<string>",
"createdAt": "<string>",
"quoteRefreshNotBefore": "<string>",
"quoteFailure": {
"venue": "<string>",
"code": "<string>",
"retryAt": "<string>"
},
"tradeSide": "<string>",
"sellShares": 123,
"depositWalletAddress": "<string>",
"estDurationMs": 123,
"venueSoloQuotes": [
{
"quoteId": "<string>",
"venue": "<string>",
"avgPrice": 123,
"filledQty": 123,
"rawExecCost": 123,
"estimatedPayout": 123,
"estimatedProfit": 123,
"returnPct": 123,
"status": "<string>",
"fills": [
{
"venue": "<string>",
"venueMarketId": "<string>",
"venueMarketOutcomeId": "<string>",
"chain": "<string>",
"avgPrice": 123,
"yesPrice": 123,
"noPrice": 123,
"fills": [
{
"price": 123,
"size": 123,
"fill": 123
}
],
"venueQty": 123,
"inAmount": "<string>",
"outAmount": "<string>",
"limitPriceMicroUsdc": "<string>",
"executionBackend": "<string>",
"venueAccountId": "<string>",
"venueFee": 123,
"builderFee": 123,
"settlementFee": 123,
"executionReserve": 123,
"feeReserve": 123,
"bookAgeMs": 123,
"freshnessRow": "<string>"
}
],
"quoteFailure": {
"venue": "<string>",
"code": "<string>",
"retryAt": "<string>"
},
"unavailableReason": "<string>",
"venueMarketOutcomeId": "<string>",
"totalCostIncFees": 123,
"allocations": [
{
"sourceChainId": "<string>",
"venue": "<string>",
"amount": 123,
"sourceTokenAddress": "<string>",
"sourceTokenSymbol": "<string>",
"custodyKind": "<string>",
"custodyAddress": "<string>",
"sourceVenueAccountId": "<string>",
"sourceExternalAccountId": "<string>",
"sourceAddress": "<string>",
"exactToken": true
}
],
"bridgeSteps": [
{
"sourceChainId": "<string>",
"destChainId": "<string>",
"amount": 123,
"cost": 123,
"sourceTokenAddress": "<string>",
"destTokenAddress": "<string>",
"sourceTokenSymbol": "<string>",
"destTokenSymbol": "<string>"
}
],
"setupCosts": [
{
"kind": "<string>",
"venue": "<string>",
"costUsd": 123,
"alreadyPaid": true,
"chainId": "<string>",
"venueMarketId": "<string>"
}
],
"setupCostsTotal": 123,
"feeBreakdown": {
"rawExecCost": 123,
"venueFees": 123,
"bridgeFees": 123,
"executionGas": 123,
"totalCost": 123,
"builderFee": 123,
"executionReserve": 123,
"appFee": 123,
"appFeeBips": 123,
"appFeeBipsByVenue": {},
"appFeeCategory": "<string>",
"referralFee": 123,
"referralFeeBipsByVenue": {},
"setupCosts": [
{
"kind": "<string>",
"venue": "<string>",
"costUsd": 123,
"alreadyPaid": true,
"chainId": "<string>",
"venueMarketId": "<string>"
}
],
"setupCostsTotal": 123,
"gasReimbursement": 123
}
}
],
"allocations": [
{
"sourceChainId": "<string>",
"venue": "<string>",
"amount": 123,
"sourceTokenAddress": "<string>",
"sourceTokenSymbol": "<string>",
"custodyKind": "<string>",
"custodyAddress": "<string>",
"sourceVenueAccountId": "<string>",
"sourceExternalAccountId": "<string>",
"sourceAddress": "<string>",
"exactToken": true
}
],
"bridgeSteps": [
{
"sourceChainId": "<string>",
"destChainId": "<string>",
"amount": 123,
"cost": 123,
"sourceTokenAddress": "<string>",
"destTokenAddress": "<string>",
"sourceTokenSymbol": "<string>",
"destTokenSymbol": "<string>"
}
],
"feeBreakdown": {
"rawExecCost": 123,
"venueFees": 123,
"bridgeFees": 123,
"executionGas": 123,
"totalCost": 123,
"builderFee": 123,
"executionReserve": 123,
"appFee": 123,
"appFeeBips": 123,
"appFeeBipsByVenue": {},
"appFeeCategory": "<string>",
"referralFee": 123,
"referralFeeBipsByVenue": {},
"setupCosts": [
{
"kind": "<string>",
"venue": "<string>",
"costUsd": 123,
"alreadyPaid": true,
"chainId": "<string>",
"venueMarketId": "<string>"
}
],
"setupCostsTotal": 123,
"gasReimbursement": 123
},
"appFee": {
"bips": 123,
"categoryKey": "<string>",
"quotedAppFeeRaw": "<string>",
"bipsByVenue": {}
},
"referral": {
"referrer": "<string>",
"feeBips": 123,
"payer": "<string>",
"quotedFeeUsd": 123,
"feeBipsByVenue": {},
"payerAddress": "<string>",
"activationSponsorAddress": "<string>"
},
"slippage": {
"vwap": 123,
"refMidpoint": 123,
"slippage": 123,
"slippageBps": 123
},
"optima": {
"maxFilledQty": 123,
"minSlippage": 123,
"minCost": 123,
"minRisk": 123,
"minBridges": 123,
"minVenues": 123
},
"warnings": [
{
"venue": "<string>",
"venueMarketOutcomeId": "<string>",
"reason": "<string>"
}
],
"custodyWarnings": [
{
"reason": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"settlementPlan": {
"redeemId": "<string>",
"status": "<string>",
"message": "<string>",
"totalRedeemableShares": 123,
"totalRedeemShares": 123,
"totalSellShares": 123,
"redeemLegs": [
{
"action": "<string>",
"venue": "<string>",
"venueMarketId": "<string>",
"venueMarketOutcomeId": "<string>",
"positionId": "<string>",
"size": "<string>",
"redeemPath": "<string>"
}
]
},
"estimatedPayout": 123,
"totalCostIncFees": 123,
"estimatedNetProceeds": 123,
"estimatedProfit": 123,
"returnPct": 123,
"positionAvailability": {
"totalSellableShares": 123,
"venueMarketOutcomes": [
{
"id": "<string>",
"venue": "<string>",
"venueMarketId": "<string>",
"availableShares": 123
}
]
},
"sizeStepRaw": "<string>",
"minSizeRaw": "<string>",
"legBounds": [
{
"venue": "<string>",
"venueMarketOutcomeId": "<string>",
"side": "<string>",
"worstPrice": 123,
"effectiveSlippageBps": 123
}
]
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "yield-xyz-borrow returned a response for GET /v1/positions that does not match the expected schema",
"id": "INTEGRATION_RESPONSE_SCHEMA_DRIFT",
"details": {
"integration": "yield-xyz-borrow",
"endpoint": "GET /v1/positions",
"issues": [
{
"path": "supplyBalances.0.balanceUsd",
"message": "Expected string, received number",
"code": "invalid_type"
}
]
}
}{
"error": "<string>"
}Agg
Get a quote
A smart-routed quote across venues, with each venue priced alone in venueSoloQuotes. Only status: ok can be filled; fill before expiresAt.
Needs a linked Agg session (POST /link). Not available to account-abstracted clients.
POST
/
clients
/
me
/
integrations
/
agg
/
quotes
Get a quote
curl --request POST \
--url https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"outcomeId": "<string>",
"amount": "<string>",
"shares": "<string>",
"slippageBps": 1,
"venues": [
"<string>"
]
}
'import requests
url = "https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes"
payload = {
"outcomeId": "<string>",
"amount": "<string>",
"shares": "<string>",
"slippageBps": 1,
"venues": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
outcomeId: '<string>',
amount: '<string>',
shares: '<string>',
slippageBps: 1,
venues: ['<string>']
})
};
fetch('https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'outcomeId' => '<string>',
'amount' => '<string>',
'shares' => '<string>',
'slippageBps' => 1,
'venues' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes"
payload := strings.NewReader("{\n \"outcomeId\": \"<string>\",\n \"amount\": \"<string>\",\n \"shares\": \"<string>\",\n \"slippageBps\": 1,\n \"venues\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"outcomeId\": \"<string>\",\n \"amount\": \"<string>\",\n \"shares\": \"<string>\",\n \"slippageBps\": 1,\n \"venues\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portalhq.io/api/v3/clients/me/integrations/agg/quotes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"outcomeId\": \"<string>\",\n \"amount\": \"<string>\",\n \"shares\": \"<string>\",\n \"slippageBps\": 1,\n \"venues\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"quoteId": "<string>",
"status": "<string>",
"expiresAt": "<string>",
"refreshAt": "<string>",
"venueMarketId": "<string>",
"venueMarketOutcomeId": "<string>",
"estimatedCostRaw": "<string>",
"rawExecCost": 123,
"totalFilled": 123,
"solveTimeMs": 123,
"verifyTimeMs": 123,
"fills": [
{
"venue": "<string>",
"venueMarketId": "<string>",
"venueMarketOutcomeId": "<string>",
"chain": "<string>",
"avgPrice": 123,
"yesPrice": 123,
"noPrice": 123,
"fills": [
{
"price": 123,
"size": 123,
"fill": 123
}
],
"venueQty": 123,
"inAmount": "<string>",
"outAmount": "<string>",
"limitPriceMicroUsdc": "<string>",
"executionBackend": "<string>",
"venueAccountId": "<string>",
"venueFee": 123,
"builderFee": 123,
"settlementFee": 123,
"executionReserve": 123,
"feeReserve": 123,
"bookAgeMs": 123,
"freshnessRow": "<string>"
}
],
"matchedMarkets": [
{
"venue": "<string>",
"venueMarketId": "<string>"
}
],
"error": "<string>",
"createdAt": "<string>",
"quoteRefreshNotBefore": "<string>",
"quoteFailure": {
"venue": "<string>",
"code": "<string>",
"retryAt": "<string>"
},
"tradeSide": "<string>",
"sellShares": 123,
"depositWalletAddress": "<string>",
"estDurationMs": 123,
"venueSoloQuotes": [
{
"quoteId": "<string>",
"venue": "<string>",
"avgPrice": 123,
"filledQty": 123,
"rawExecCost": 123,
"estimatedPayout": 123,
"estimatedProfit": 123,
"returnPct": 123,
"status": "<string>",
"fills": [
{
"venue": "<string>",
"venueMarketId": "<string>",
"venueMarketOutcomeId": "<string>",
"chain": "<string>",
"avgPrice": 123,
"yesPrice": 123,
"noPrice": 123,
"fills": [
{
"price": 123,
"size": 123,
"fill": 123
}
],
"venueQty": 123,
"inAmount": "<string>",
"outAmount": "<string>",
"limitPriceMicroUsdc": "<string>",
"executionBackend": "<string>",
"venueAccountId": "<string>",
"venueFee": 123,
"builderFee": 123,
"settlementFee": 123,
"executionReserve": 123,
"feeReserve": 123,
"bookAgeMs": 123,
"freshnessRow": "<string>"
}
],
"quoteFailure": {
"venue": "<string>",
"code": "<string>",
"retryAt": "<string>"
},
"unavailableReason": "<string>",
"venueMarketOutcomeId": "<string>",
"totalCostIncFees": 123,
"allocations": [
{
"sourceChainId": "<string>",
"venue": "<string>",
"amount": 123,
"sourceTokenAddress": "<string>",
"sourceTokenSymbol": "<string>",
"custodyKind": "<string>",
"custodyAddress": "<string>",
"sourceVenueAccountId": "<string>",
"sourceExternalAccountId": "<string>",
"sourceAddress": "<string>",
"exactToken": true
}
],
"bridgeSteps": [
{
"sourceChainId": "<string>",
"destChainId": "<string>",
"amount": 123,
"cost": 123,
"sourceTokenAddress": "<string>",
"destTokenAddress": "<string>",
"sourceTokenSymbol": "<string>",
"destTokenSymbol": "<string>"
}
],
"setupCosts": [
{
"kind": "<string>",
"venue": "<string>",
"costUsd": 123,
"alreadyPaid": true,
"chainId": "<string>",
"venueMarketId": "<string>"
}
],
"setupCostsTotal": 123,
"feeBreakdown": {
"rawExecCost": 123,
"venueFees": 123,
"bridgeFees": 123,
"executionGas": 123,
"totalCost": 123,
"builderFee": 123,
"executionReserve": 123,
"appFee": 123,
"appFeeBips": 123,
"appFeeBipsByVenue": {},
"appFeeCategory": "<string>",
"referralFee": 123,
"referralFeeBipsByVenue": {},
"setupCosts": [
{
"kind": "<string>",
"venue": "<string>",
"costUsd": 123,
"alreadyPaid": true,
"chainId": "<string>",
"venueMarketId": "<string>"
}
],
"setupCostsTotal": 123,
"gasReimbursement": 123
}
}
],
"allocations": [
{
"sourceChainId": "<string>",
"venue": "<string>",
"amount": 123,
"sourceTokenAddress": "<string>",
"sourceTokenSymbol": "<string>",
"custodyKind": "<string>",
"custodyAddress": "<string>",
"sourceVenueAccountId": "<string>",
"sourceExternalAccountId": "<string>",
"sourceAddress": "<string>",
"exactToken": true
}
],
"bridgeSteps": [
{
"sourceChainId": "<string>",
"destChainId": "<string>",
"amount": 123,
"cost": 123,
"sourceTokenAddress": "<string>",
"destTokenAddress": "<string>",
"sourceTokenSymbol": "<string>",
"destTokenSymbol": "<string>"
}
],
"feeBreakdown": {
"rawExecCost": 123,
"venueFees": 123,
"bridgeFees": 123,
"executionGas": 123,
"totalCost": 123,
"builderFee": 123,
"executionReserve": 123,
"appFee": 123,
"appFeeBips": 123,
"appFeeBipsByVenue": {},
"appFeeCategory": "<string>",
"referralFee": 123,
"referralFeeBipsByVenue": {},
"setupCosts": [
{
"kind": "<string>",
"venue": "<string>",
"costUsd": 123,
"alreadyPaid": true,
"chainId": "<string>",
"venueMarketId": "<string>"
}
],
"setupCostsTotal": 123,
"gasReimbursement": 123
},
"appFee": {
"bips": 123,
"categoryKey": "<string>",
"quotedAppFeeRaw": "<string>",
"bipsByVenue": {}
},
"referral": {
"referrer": "<string>",
"feeBips": 123,
"payer": "<string>",
"quotedFeeUsd": 123,
"feeBipsByVenue": {},
"payerAddress": "<string>",
"activationSponsorAddress": "<string>"
},
"slippage": {
"vwap": 123,
"refMidpoint": 123,
"slippage": 123,
"slippageBps": 123
},
"optima": {
"maxFilledQty": 123,
"minSlippage": 123,
"minCost": 123,
"minRisk": 123,
"minBridges": 123,
"minVenues": 123
},
"warnings": [
{
"venue": "<string>",
"venueMarketOutcomeId": "<string>",
"reason": "<string>"
}
],
"custodyWarnings": [
{
"reason": "<string>",
"message": "<string>"
}
],
"message": "<string>",
"settlementPlan": {
"redeemId": "<string>",
"status": "<string>",
"message": "<string>",
"totalRedeemableShares": 123,
"totalRedeemShares": 123,
"totalSellShares": 123,
"redeemLegs": [
{
"action": "<string>",
"venue": "<string>",
"venueMarketId": "<string>",
"venueMarketOutcomeId": "<string>",
"positionId": "<string>",
"size": "<string>",
"redeemPath": "<string>"
}
]
},
"estimatedPayout": 123,
"totalCostIncFees": 123,
"estimatedNetProceeds": 123,
"estimatedProfit": 123,
"returnPct": 123,
"positionAvailability": {
"totalSellableShares": 123,
"venueMarketOutcomes": [
{
"id": "<string>",
"venue": "<string>",
"venueMarketId": "<string>",
"availableShares": 123
}
]
},
"sizeStepRaw": "<string>",
"minSizeRaw": "<string>",
"legBounds": [
{
"venue": "<string>",
"venueMarketOutcomeId": "<string>",
"side": "<string>",
"worstPrice": 123,
"effectiveSlippageBps": 123
}
]
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "yield-xyz-borrow returned a response for GET /v1/positions that does not match the expected schema",
"id": "INTEGRATION_RESPONSE_SCHEMA_DRIFT",
"details": {
"integration": "yield-xyz-borrow",
"endpoint": "GET /v1/positions",
"issues": [
{
"path": "supplyBalances.0.balanceUsd",
"message": "Expected string, received number",
"code": "invalid_type"
}
]
}
}{
"error": "<string>"
}Authorizations
Client API Key or Client Session Token (CST). Pass as a Bearer token in the Authorization header.
Body
application/json
Minimum string length:
1Available options:
buy, sell Decimal string, in the quote currency. Exactly one of amount / shares.
Required range:
x >= 0Price against the user's own wallet; quote this way before a custody: "self" fill.
Available options:
managed, self paper prices for a simulated fill; fill it with the same mode.
Available options:
live, paper Response
Success
Show child attributes
Show child attributes
Was this page helpful?