Request a maker test trade
POST/test-requests
Opens a 100 USD test RFQ on USD/MXN for a funded, approved maker account. The request lasts 3 hours. CRX accepts a quote within 10 basis points of reference_rate and opens a real position. Repeat the call to get the active RFQ, or to renew it after it expires unaccepted. No new RFQ in the request's final minute. One new request per maker per UTC day; renewals do not count. A request refused for collateral not yet counted (403 forbidden) does not count either: deposit, then request again. Returns 429 while another test RFQ is in progress.
Authentication
x-crx-addressx-crx-tsx-crx-sigx-crx-addressx-crx-signerx-crx-tsx-crx-sigx-crx-session
Request body
| Field | Type | Description |
|---|---|---|
chain | string | A |
Responses
200
The test RFQ, as the maker sees it.
Test RFQ, as the maker sees it, for a real 100 USD trade.
| Field | Type | Description |
|---|---|---|
rfq_id required | string | |
chain required | string ethereum | |
pair required | string USDMXN | |
side required | integer -1 |
|
notional required | string 100 |
|
premium_bps required | integer 0 | |
expiry required | integerminimum 0 | Settlement time: |
request_expires_at required | integerminimum 0 | Test request deadline: 3 hours after the request opens. Unchanged on renewal. |
closes_at required | integerminimum 0 | End of this RFQ: within 120 seconds of its creation, and no later than |
quote_expiry_max required | integer | Latest quote expiry, in Unix time (seconds). Use the value returned for this RFQ. |
taker_ref required | string | |
status required | string open quoted accepted opened settled expired cancelled | |
test_request required | boolean true | |
reference_rate required | string | Reference rate, in MXN per USD. A quote more than 10 basis points away is refused. |
400
bad_request: send only chain with the value ethereum.
401
unauthorized: a header is missing or malformed, x-crx-ts is out of range, the call was already used, the signature does not match, or the caller lacks access.
code unauthorized
403
not_whitelisted, forbidden or seat_cannot_sign: the account cannot make test requests, or its counted free collateral does not cover the test trade (forbidden; the request does not count).
404
unknown_rfq: test requests are unavailable.
429
rate_limited: the daily limit is reached, or a test request is in progress. Retry after Retry-After.
| Header | Type | Description |
|---|---|---|
Retry-After | integer | Seconds until the next request is accepted. |
503
mark_unavailable: the reference price is unavailable.
default
Request refused; code and message give the reason.