PaydayAPI
API reference · OTC

Get an offer

GEThttps://dev.payday.direct/api/v1/otc/listing/{id}

One offer with its fills. A private offer answers only to requests from payday.direct pages or with no origin.

Needs an API key in Authorization: Bearer or X-API-Key. Authentication

Path parameters

idstringrequired
The listing address

Responses

200OK
401Missing or invalid key
403A private offer asked for from another site
404No such offer

Response fields

okboolean
listingobject
fillsobject[]
fills[].sigstring
fills[].buyerstring
fills[].amountnumber
Whole tokens
fills[].paynumber
SOL paid
fills[].feenumber
SOL fee, part of pay
fills[].pricenumber
SOL per token paid
fills[].lockedPricenumber | null
Market fills: the market price the program read and locked for this fill
fills[].atstring | null