Authorizations
Paxos APIs use OAuth 2 with the client credentials grant flow.
Token URLs:
- Production: https://oauth.paxos.com/oauth2/token
- Sandbox: https://oauth.sandbox.paxos.com/oauth2/token
Learn more in the API credentials guide →
Path Parameters
The profileId the order will be associated with.
Body
Trade side.
BUY
, SELL
ETHEUR
, ETHSGD
, ETHUSD
, BTCEUR
, BTCSGD
, BTCUSD
, PAXGUSD
, BCHUSD
, LTCUSD
, USDPUSD
, LINKUSD
, MATICUSD
, AAVEUSD
, UNIUSD
Trade type.
LIMIT
, MARKET
, POST_ONLY_LIMIT
, STOP_MARKET
, STOP_LIMIT
The idempotence ID for order creation. Can be reused if the order has been closed for more than 24 hours.
The base currency amount for any limit order or the exact amount to sell for a market sell order.
The quote price.
The quote currency amount of purchase for a market buy order.
Metadata to store on the quote and created order. Up to 6 key/value pairs may be stored, with each key and value at most 100 characters.
The amount of time to wait for the order to fill, in milliseconds.
When await_fill_millis
is set to a non-zero value, the Create Order call does not return immediately on order creation. Instead, the call blocks until either:
- The order has filled completely
- The time
await_fill_millis
has elapsed The maximum wait timeout is 10 seconds (10000 milliseconds).
x <= 10000
How long an order will remain active before it expires.
- Immediate-or-Cancel (IOC): Cancel if not executed immediately, partial fills allowed.
- Good-Til-Canceled (GTC): Order can be canceled at any point until executed.
- Good-Til-Time (GTT): Expires if not executed by a specified time. GTT must be greater than 10 seconds after the order is placed, otherwise the order will be rejected.
- Fill-or-Kill (FOK): Fill entire order only or cancel entire order, does not allow for partial filling.
Time in Force validity for Order Types
Order type | Immediate or Cancel (IOC) | Good Til Canceled (GTC) | Good Til Time (GTT) | Fill or Kill (FOK) |
---|---|---|---|---|
Market Order | Default | - | - | - |
Limit Order | Valid | Default | Valid | Valid |
Post Only Limit | Valid | Default | Valid | Valid |
Stop Market | - | Default | Valid | - |
Stop Limit | - | Default | Valid | - |
GTC
, FOK
, IOC
, GTT
The date the order will expire if not completed when specified time in force is GTT. Format is a unix timestamp in milliseconds (13-digits) UTC (total milliseconds that have elapsed since January 1st, 1970 UTC).
The end user that requests the trade. This field must be used in conjunction with identity_account_id
, otherwise the order is rejected. Depending on your integration type, identity_id
and identity_account_id
may be required.
The account under which this order is placed. The provided identity must be allowed to trade on behalf of this account. This field must be used in conjunction with identity_id
, otherwise the order is rejected. Depending on your integration type, identity_account_id
and identity_id
may be required.
The profileId that will receive settled currency (base for buy orders, quote for sell orders).
The string field used to prevent matching against an opposite side order submitted by the same Crypto Brokerage customer. If this field is not submitted, an order that matches against another order submitted by the same customer will cancel the original resting order. Up to 36 characters are supported. This field requires additional permissions only available to certain accounts. Reach out to your Paxos Representative for more information.
Response
A successful response.
The UUID of the order.
The profile ID the order is associated with.
The idempotence ID for order creation. Can be reused if the order has been closed for more than 24 hours.
PENDING_SUBMISSION
, SUBMITTED
, OPEN
, FILLED
, CANCELLED
, REJECTED
Trade side.
BUY
, SELL
ETHEUR
, ETHSGD
, ETHUSD
, BTCEUR
, BTCSGD
, BTCUSD
, PAXGUSD
, BCHUSD
, LTCUSD
, USDPUSD
, LINKUSD
, MATICUSD
, AAVEUSD
, UNIUSD
Trade type.
LIMIT
, MARKET
, POST_ONLY_LIMIT
, STOP_MARKET
, STOP_LIMIT
The base amount or purchase amount for a market sell order.
The quote price.
The quote amount of purchase for a market buy order.
Client-specified metadata.
The time at which the order was created.
The time at which the order was last modified.
The amount that was filled.
The volume-weighted average price.
How long an order will remain active before it expires.
- Immediate-or-Cancel (IOC): Cancel if not executed immediately, partial fills allowed.
- Good-Til-Canceled (GTC): Order can be canceled at any point until executed.
- Good-Til-Time (GTT): Expires if not executed by a specified time. GTT must be greater than 10 seconds after the order is placed, otherwise the order will be rejected.
- Fill-or-Kill (FOK): Fill entire order only or cancel entire order, does not allow for partial filling.
Time in Force validity for Order Types
Order type | Immediate or Cancel (IOC) | Good Til Canceled (GTC) | Good Til Time (GTT) | Fill or Kill (FOK) |
---|---|---|---|---|
Market Order | Default | - | - | - |
Limit Order | Valid | Default | Valid | Valid |
Post Only Limit | Valid | Default | Valid | Valid |
Stop Market | - | Default | Valid | - |
Stop Limit | - | Default | Valid | - |
GTC
, FOK
, IOC
, GTT
The date the order will expire if not completed when specified time in force is GTT.
The end user that requests the trade. This field must be used in conjunction with identity_account_id
, otherwise the order is rejected. Depending on your integration type, identity_id
and identity_account_id
may be required.
The account under which this order is placed. The provided identity must be allowed to trade on behalf of this account. This field must be used in conjunction with identity_id
, otherwise the order is rejected. Depending on your integration type, identity_account_id
and identity_id
may be required.
The profileId that will receive settled currency (base for buy orders, quote for sell orders).
Returns true
when a stop order has been triggered.