Place a paper trading order
curl --request POST \
--url https://api.agg.market/apps/{appId}/paper-trading/accounts/{accountId}/orders \
--header 'Content-Type: application/json' \
--header 'x-app-api-key: <api-key>' \
--data '
{
"venueMarketOutcomeId": "<string>",
"spendRaw": "<string>",
"spend": 1,
"shares": 1,
"slippageBps": 5000,
"clientOrderId": "<string>"
}
'{
"id": "<string>",
"accountId": "<string>",
"venue": "<string>",
"venueMarketId": "<string>",
"venueMarketOutcomeId": "<string>",
"marketQuestion": "<string>",
"outcomeLabel": "<string>",
"clientOrderId": "<string>",
"requestedSpendRaw": "<string>",
"requestedSpend": 123,
"requestedShares": 123,
"filledShares": 123,
"avgPrice": 123,
"slippageBps": 123,
"notionalRaw": "<string>",
"notional": 123,
"cashDeltaRaw": "<string>",
"cashDelta": 123,
"realizedPnlRaw": "<string>",
"realizedPnl": 123,
"rejectionReason": "<string>",
"createdAt": "<string>"
}Execution
Place a paper trading order
POST
/
apps
/
{appId}
/
paper-trading
/
accounts
/
{accountId}
/
orders
Place a paper trading order
curl --request POST \
--url https://api.agg.market/apps/{appId}/paper-trading/accounts/{accountId}/orders \
--header 'Content-Type: application/json' \
--header 'x-app-api-key: <api-key>' \
--data '
{
"venueMarketOutcomeId": "<string>",
"spendRaw": "<string>",
"spend": 1,
"shares": 1,
"slippageBps": 5000,
"clientOrderId": "<string>"
}
'{
"id": "<string>",
"accountId": "<string>",
"venue": "<string>",
"venueMarketId": "<string>",
"venueMarketOutcomeId": "<string>",
"marketQuestion": "<string>",
"outcomeLabel": "<string>",
"clientOrderId": "<string>",
"requestedSpendRaw": "<string>",
"requestedSpend": 123,
"requestedShares": 123,
"filledShares": 123,
"avgPrice": 123,
"slippageBps": 123,
"notionalRaw": "<string>",
"notional": 123,
"cashDeltaRaw": "<string>",
"cashDelta": 123,
"realizedPnlRaw": "<string>",
"realizedPnl": 123,
"rejectionReason": "<string>",
"createdAt": "<string>"
}Authorizations
App-scoped API key for programmatic app management.
Body
application/json
Response
201
Available options:
buy, sell Available options:
filled, rejected ⌘I