Place order

post

Coming soon...

Place a swap order with an AMM (DotSwap, RunesDex) to receive an unsigned PSBT.

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

{
  "providerCode": "runesdex",
  "from": {
    "ticker": "BTC",
    "protocol": "btc"
  },
  "to": {
    "ticker": "840000:3",
    "protocol": "runes"
  },
  "sendAmount": "1",
  "receiveAmount": "0.18041",
  "slippage": 0.05,
  "feeRate": 33,
  "btcAddress": "bc1q7...",
  "btcPubKey": "03b...",
  "ordAddress": "bc1ph...",
  "ordPubKey": "2b0..."
}
200

Default Response

{
  "orderId": "...",
  "expiresInMilliseconds": 30000,
  "psbt": "cHNid..."
}

Last updated