Place order

post

Coming soon...

Place cross-chain swap orders (via Changelly).

Authorizations
Body
objectOptional
Responses
200
Default Response
application/json
Responseobject
post
POST /v1/swaps/crosschain/place-order HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 258

{
  "from": {
    "protocol": "btc",
    "ticker": "btc"
  },
  "receiveAddress": "...",
  "sendAmount": "0.0004",
  "to": {
    "protocol": "stx",
    "symbol": "STX",
    "logo": "https://cdn.changelly.com/icons-colored/stx.png",
    "ticker": "stx",
    "name": "STX"
  },
  "providerCode": "changelly",
  "fromAddress": "..."
}
200

Default Response

{
  "orderId": "...",
  "payinAddress": "...",
  "status": "new"
}

Last updated