API reference · OTC
Check a coin for OTC
GET https://payday.direct/api /otc/coin/{mint} Copy
Any token mint: whether the locker takes it (problem is null when it does), its name and picture, the market price the program reads, and liquidity. Add ?wallet= for how much that wallet holds (held, raw units).
No API key.
mintstring required
Any token mint
walletstring
Also say how much this wallet holds
200 OK
400 Refused; nothing to sign
429 Over the limit. Retry-After says when to try again.
heldstring | null
With ?wallet=: how much that wallet holds, in raw units
cURL JavaScript Python Copy
curl "https://payday.direct/api/otc/coin/MINT_ADDRESS" const res = await fetch("https://payday.direct/api/otc/coin/MINT_ADDRESS", {
});
const json = await res.json();
if (!res.ok) throw new Error(json.error?.code);
console.log(json);import os, requests
r = requests.get(
"https://payday.direct/api/otc/coin/MINT_ADDRESS",
)
r.raise_for_status()
print(r.json())Response 200 Copy
{
"ok" : true ,
"coin" : {
"mint" : "3unDHbPUsLqQtoHgvuCsRSArnuhVjhsn11vRht5Xpump" ,
"name" : "Example Coin" ,
"symbol" : "Example" ,
"image" : "https://payday.direct/img/example.png" ,
"decimals" : 6 ,
"tokenProgram" : "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb" ,
"isPump" : true ,
"problem" : null ,
"venue" : "curve" ,
"quote" : "sol" ,
"pair" : "sol" ,
"marketPriced" : true ,
"price" : 0.0000312 ,
"priceUsd" : 0.0044 ,
"mcapSol" : 31200 ,
"mcapUsd" : 4368000 ,
"liqUsd" : 7240 ,
"reliable" : true ,
"supplyWhole" : 1000000000
},
"held" : "5000000000000" ,
"blocked" : false ,
"problemText" : null
}