Create quote

Creates a new, non-accepted quote.

SecurityapiKey and apiSecret
Request
Request Body schema:

The details of the new quote.

required
object
required
object
required
object
assetType
required
string

The type of asset. This could represent a currency, a cryptocurrency, or some other class of asset. See the possible values for examples.

Enum: "asset:eth:USDC" "asset:eth:USDT" "asset:eth:WBTC" "asset:btc:BTC" "asset:sol:USDC" "asset:fiat:COP" "asset:fiat:MXN" "asset:fiat:ARS" "asset:fiat:CLP" "asset:fiat:BRL" "asset:fiat:USD" "asset:fiat:GHS"
amount
required
string <\d+>

A very large, unsigned, integer represented as a string.

required
object
assetType
required
string

The type of asset. This could represent a currency, a cryptocurrency, or some other class of asset. See the possible values for examples.

Enum: "asset:eth:USDC" "asset:eth:USDT" "asset:eth:WBTC" "asset:btc:BTC" "asset:sol:USDC" "asset:fiat:COP" "asset:fiat:MXN" "asset:fiat:ARS" "asset:fiat:CLP" "asset:fiat:BRL" "asset:fiat:USD" "asset:fiat:GHS"
Responses
201

Quote details.

Response Schema: application/vnd.api+json
required
object
id
required
string <id:quote:[a-zA-Z0-9]{27}>
type
required
string
Value: "quote"
required
object
required
object
assetType
required
string

The type of asset. This could represent a currency, a cryptocurrency, or some other class of asset. See the possible values for examples.

Enum: "asset:eth:USDC" "asset:eth:USDT" "asset:eth:WBTC" "asset:btc:BTC" "asset:sol:USDC" "asset:fiat:COP" "asset:fiat:MXN" "asset:fiat:ARS" "asset:fiat:CLP" "asset:fiat:BRL" "asset:fiat:USD" "asset:fiat:GHS"
amount
required
string <\d+>

A very large, unsigned, integer represented as a string.

required
object
assetType
required
string

The type of asset. This could represent a currency, a cryptocurrency, or some other class of asset. See the possible values for examples.

Enum: "asset:eth:USDC" "asset:eth:USDT" "asset:eth:WBTC" "asset:btc:BTC" "asset:sol:USDC" "asset:fiat:COP" "asset:fiat:MXN" "asset:fiat:ARS" "asset:fiat:CLP" "asset:fiat:BRL" "asset:fiat:USD" "asset:fiat:GHS"
amount
required
string <\d+>

A very large, unsigned, integer represented as a string.

expiresAt
required
string <date-time>
status
required
string
Enum: "open" "expired" "accepted" "filled" "cancelled"
required
object
self
required
string <uri>
400

The submitted request could not be completed because of an error in the input.

403

Access prohibited. This typically indicates that the presented credentials were invalid.

406

No supported media types in the 'accept' request header.

415

Unsupported media type in the 'content-type' request header.

post/quotes
Request samples
{
  • "data": {
    • "attributes": {
      • "source": {
        • "assetType": "asset:eth:USDC",
        • "amount": "5000000000"
        },
      • "target": {
        • "assetType": "asset:eth:USDC"
        }
      }
    }
}
Response samples
application/vnd.api+json
{
  • "data": {
    • "id": "id:quote:2G6BST3Q0age8uCpYN7vIloQyxT",
    • "type": "quote",
    • "attributes": {
      • "source": {
        • "assetType": "asset:eth:USDC",
        • "amount": "5000000000"
        },
      • "target": {
        • "assetType": "asset:eth:USDC",
        • "amount": "5000000000"
        },
      • "expiresAt": "2019-08-24T14:15:22Z",
      • "status": "open"
      }
    },
  • "links": {}
}