API reference · OTC
A wallet's OTC history
GET https://dev.payday.direct/api/v1 /otc/history/{wallet} Copy
Every buy and sale the wallet made through the locker, newest first (up to 200): the coin, amount, SOL paid, the 5% fee, what a seller received, the price as a market cap and the other wallet.
Needs an API key in Authorization: Bearer or X-API-Key. Authentication
walletstring required
A Solana wallet
200 OK
400 Not a wallet address
401 Missing or invalid key
cURL JavaScript Python Copy
curl "https://dev.payday.direct/api/v1/otc/history/WALLET" \
-H "Authorization: Bearer pd_YOUR_KEY" const res = await fetch("https://dev.payday.direct/api/v1/otc/history/WALLET", {
headers: { Authorization: "Bearer " + process.env.PAYDAY_KEY },
});
const json = await res.json();
if (!res.ok) throw new Error(json.error?.code);
console.log(json);import os, requests
r = requests.get(
"https://dev.payday.direct/api/v1/otc/history/WALLET",
headers={"Authorization": "Bearer " + os.environ["PAYDAY_KEY"]},
)
r.raise_for_status()
print(r.json())Response 200 Copy
{
"ok" : true ,
"wallet" : "BuyerWa11et11111111111111111111111111111111" ,
"items" : [
{
"side" : "buy" ,
"sig" : "5Xy...q1" ,
"listing" : "L1st1ngAddre55111111111111111111111111111111" ,
"mint" : "3unDHbPUsLqQtoHgvuCsRSArnuhVjhsn11vRht5Xpump" ,
"coin" : {
"mint" : "3unDHbPUsLqQtoHgvuCsRSArnuhVjhsn11vRht5Xpump" ,
"name" : "Example Coin" ,
"symbol" : "Example" ,
"image" : "https://payday.direct/img/example.png" ,
"decimals" : 6
},
"amount" : 250000 ,
"pay" : 0.0081 ,
"fee" : 0.000405 ,
"received" : null ,
"each" : 3.24e-8 ,
"mcapUsd" : 4536 ,
"quote" : "sol" ,
"mode" : "usd" ,
"counterparty" : "SellerWa11et1111111111111111111111111111111" ,
"offerStatus" : "partly" ,
"at" : "2026-11-17T15:40:02.000Z"
}
]
}