Trades

Create a request to quote a trade

POST /transactions/quotes/trades

Request Body

Name
Type
Description

amount*

string

Amount to trade

pair*

string

Trading pair in which to operate

side

BUY | SELL

Whether buying or selling the base currency of the pair in case of a trade operation

currency

string

The base currency you will use being EUR or USDC

{
    "expirationDate": "2022-12-15T16:43:11.238Z",
    "quantity": 0.46805232,
    "fee": 9.69,
    "totalAmount": 7695.57,
    "userId": "9011017",
    "parameters": {
        "variableFeeRate": 0.001,
        "fixedFee": 2,
        "originalAmount": 7695.57,
        "commision": 0
    },
    "pair": "BTC_EUR",
    "amount": 7685.88,
    "paymentMethod": "BALANCE",
    "side": "BUY | SELL",
    "used": false,
    "id": "2IxUAU0qmurrAr34vtdECE9aW25",
    "price": 16420.98
}

Confirm a previous quote

POST /transactions/quotes/trades/:quoteId/confirm

Path Parameters

Name
Type
Description

quoteId*

string

The id of the quote to confirm and perform

{
    "success": true
}

Last updated