The last quote of a market and whether a new order may be placed on it now
const url = 'https://app.proofperps.com/v1/api/markets/example/quote';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.proofperps.com/v1/api/markets/example/quote \ --header 'Authorization: Bearer <token>'The market’s last quote (bid_e8, ask_e8, ts_ms…; null before the first one) and whether a new
order may be placed on it now (frozen, manual_freeze, reconnecting).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The same JSON the terminal gets from its route of the same name.
object
Example generated
{}VALIDATION_ERROR: a parameter, a header or the body is not as described.
object
object
object
Example
{ "error": { "source": "api" }}API_KEY_INVALID: the key is missing, malformed, unknown or revoked (detail.reason CONTRACT_WALLET_REVOKED: the contract wallet that made it no longer accepts its sign-in; the key is revoked).
object
object
object
Example
{ "error": { "source": "api" }}NOT_FOUND: an account that is not yours (exactly like an unknown one), an order, a market.
object
object
object
Example
{ "error": { "source": "api" }}RATE_LIMITED: wait Retry-After seconds (per key, and per trader for the order routes).
object
object
object
Example
{ "error": { "source": "api" }}API_DISABLED, API_TRADING_DISABLED, ORDERS_BLOCKED, STORAGE_UNAVAILABLE or SIWE_RPC_UNAVAILABLE (the node of the contract wallet that made the key cannot answer): nothing was done, try later.
object
object
object
Example
{ "error": { "source": "api" }}