For the complete documentation index, see llms.txt. This page is also available as Markdown.

History

Orders, trades, transactions, activity, and profile metrics

Use these endpoints to inspect completed trading activity and account metrics.

Need live events instead of polling.

Use Order Feed, Activity Feed, and Last Trades Feed for live updates.

Authentication

  • Use API key authentication for orders, trades, activity, and profile stats.

  • Use JWT Bearer authentication for transactions.

Order History

GET /api/history/orders

Query parameters

Parameter
Type
Required
Default
Description

page

integer

No

0

Page number

size

integer

No

20

Items per page

eventOutcomeId

string

No

Filter by outcome or market ID

sort

string

No

desc

Sort direction: asc or desc

Response 200 OK

{
  "i": [
    {
      "i": "order-id",
      "u": "user-id",
      "e": "event-id",
      "o": "outcome-id",
      "a": "asset-id",
      "oq": 100,
      "si": "BUY",
      "t": "LIMIT",
      "p": 0.42,
      "m": 1710000000000,
      "ex": null,
      "st": "FILLED",
      "q": 100
    }
  ],
  "p": 0,
  "s": 20,
  "tp": 8
}
Field
Type
Description

i

string

Order ID

u

string

User ID

e

string

Event ID

o

string

Outcome ID

a

string

Asset ID

oq

number

Original quantity

si

string

Side

t

string

Order type

p

number

Price

m

number

Placement time

ex

string

Expire at or null

st

string

Status

q

number

Filled quantity

Trade History

Query parameters

Parameter
Type
Required
Default
Description

page

integer

No

0

Page number

size

integer

No

20

Items per page

eventOutcomeId

string

No

Filter by outcome or market ID

Response 200 OK

Field
Type
Description

i

string

Trade record ID

t

string

Trade ID

u

string

User ID

or

string

Order ID

s

string

Side

e

string

Event ID

o

string

Outcome ID

a

string

Asset ID

q

number

Quantity

p

number

Price

f

number

Fee

m

string

Execution time

Transaction History

Headers

Header
Value

Authorization

Bearer <token>

Query parameters

Parameter
Type
Required
Default
Description

page

integer

No

0

Page number

size

integer

No

20

Items per page

Example request

Use the wallet service host for transaction history.

Response 200 OK

Field
Type
Description

i

string

Transaction ID

u

string

User ID

a

string

Asset ID

eq

string

Event question

ei

string

Event icon URL

es

string

Event slug

on

string

Outcome name

tn

string

Token name

ip

boolean

Primary outcome flag

t

string

Transaction type

am

number

Amount

s

string

Status

cat

string

Created at

e

string

External transaction ID

f

number

Fee

ta

string

Withdrawal address

bu

string

Blockchain transaction URL

bn

string

Blockchain name

Activity Feed

Query parameters

Parameter
Type
Required
Default
Description

page

integer

No

0

Page number

size

integer

No

20

Items per page

Response 200 OK

Field
Type
Description

u

string

User ID

tra

string

Trade record ID

n

string

Username

oi

string

Outcome ID

on

string

Outcome name

p

string

Position direction

si

string

Side

q

number

Quantity

x

string

Execution time

eq

string

Event question

ei

string

Event icon URL

es

string

Event slug

tn

string

Token name

ip

boolean

Primary outcome flag

pr

number

Price

ev

number

Event volume

uv

number

User volume or null

This endpoint returns t for total items instead of tp.

Profile Stats

Path parameters

Parameter
Type
Description

userId

string

User ID

Response 200 OK

Field
Type
Description

profile.userId

string

User ID

profile.username

string

Username

profile.joinedAt

string

Join date

profile.me

boolean

Authenticated user

cards.positionValue

number

Position value

cards.volumeTraded

number

Volume traded

cards.marketsTraded

number

Markets traded

Position Stats

Path parameters

Parameter
Type
Description

userId

string

User ID

Response 200 OK

Field
Type
Description

tab

string

Active tab

ti

number

Total items

od

string

Open date

cd

string

Close date

Last updated

Was this helpful?