Create Cross Exchange

Request:

POST https://api.moneypipe.com/sandbox/v1/cross-exchanges

Request headers:

Name Value
Authorization Bearer {company_token}
Content-Type application/json

Request body:

Body
{
	"sell_currency": "BTC",
	"buy_currency": "ETH",
	"sell_amount": "0.00024865",
	"buy_amount": "0.01",
	"sell_address": "2MxrLNgYJS5MM53XTVLc5QcAM4EwwfoDgy7",
	"buy_address": "0x2c951247ecdc0cf12f69f8302e6e6eda2b33abe1"
}

Body details:

Parameter Type Description

sell_currency *

string

Сurrency for sale

buy_currency *

string

Сurrency to buy

sell_amount **

string

Amount for sale

buy_amount **

string

Amount to buy

sell_address *

string

Address to which funds will be refunded in case of unsuccessful cross-exchange

buy_address *

string

The address to which funds will be credited in case of a successful cross-exchange

* - required

** - one of the two fields is required

Response:

201

Body
{
	"data": {
        "id": "e5302b942164be5bed4c",
        "operation_id": "0abbdb1117499a4e6cbd",
        "sell_currency": "BTC",
        "buy_currency": "ETH",
        "sell_amount": "0.00024865",
        "buy_amount": "0.01",
        "fee": "0",
        "rate": "46.23712807",
        "invoice_address": "2MxytWgaJS5MM53XTVLc5QcAM4Ewwfopat8",
        "status": "processed",
        "expired_at": "2020-05-04T15:01:25.000000Z",
        "created_at": "2020-05-04T14:01:25.000000Z",
        "updated_at": "2020-05-04T14:01:25.000000Z"
    }
}

Operation details:

Parameter Type Description
id string

Cross exchange id

operation_id string

Operation id

sell_currency string Сurrency for sale
buy_currency string Сurrency to buy
sell_amount string

Amount for sale

buy_amount string

Amount to buy

fee string

Fee of the cross exchange amount

rate string

Cross exchange rate at the moment of payment

invoice_address string Cross exchange address
status string Cross exchange status
expired_at string Cross exchange expiration date
created_at string Cross exchange creation date
updated_at string Cross exchange change date