Get the positions for a OAuth connection
POST
/oauth/positionsRequest
Body Params application/json
signer
string
required
a string
account
string
required
a string
signature
string
required
a string
data
object
required
timestamp
integer
required
an integer
first
string
optional
a string that will be parsed into a number
after
string
optional
a string
Example
{
"signer": "string",
"account": "string",
"signature": "string",
"data": {
"timestamp": 0,
"first": "string",
"after": "string"
}
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Response 200
Data Schema
success
boolean
required
a boolean
cursor
string | null
required
a string
data
array [object {6}]
required
id
string
required
a string
market
object
required
outcome
object
required
amount
string
required
bigint string
valueUsd
string
required
a string
buyPriceUsd
string
required
a string
Example
{
"success": true,
"cursor": "string",
"data": [
{
"id": "string",
"market": {
"id": 0,
"imageUrl": "string",
"title": "string",
"question": "string",
"description": "string",
"status": "REGISTERED",
"isNegRisk": true,
"feeRateBps": 0,
"resolution": {
"name": "string",
"indexSet": 0,
"onChainId": "string",
"status": "WON"
},
"oracleQuestionId": "string",
"conditionId": "string",
"resolverAddress": "string",
"outcomes": [
{
"name": "string",
"indexSet": 0,
"onChainId": "string",
"status": "WON"
}
],
"questionIndex": 0,
"pointAllocationBps": 0,
"spreadThreshold": 0,
"shareThreshold": 0,
"polymarketConditionIds": [
"string"
],
"categorySlug": "string",
"createdAt": "string",
"decimalPrecision": 2
},
"outcome": {
"name": "string",
"indexSet": 0,
"onChainId": "string",
"status": "WON"
},
"amount": "string",
"valueUsd": "string",
"buyPriceUsd": "string"
}
]
}
Last modified: 11 days ago