Place order
post
Place a swap order with an AMM (DotSwap, RunesDex) to receive an unsigned PSBT to sign.
Authorizations
Body
providerCodestringRequired
sendAmountstringRequired
receiveAmountstringRequired
slippagenumberRequired
feeRatenumberRequired
btcAddressstringRequired
btcPubKeystringRequired
ordAddressstringRequired
ordPubKeystringRequired
identifieranyOptional
Responses
200
Default Response
application/json
400
Invalid input
application/json
401
Unauthorized
application/json
404
Not found
application/json
429
Rate limit exceeded
application/json
500
Internal server error
application/json
post
/v1/swaps/amm/place-orderPOST /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: 358
{
"providerCode": "<provider code from get quotes>",
"from": {
"ticker": "840000:2",
"protocol": "runes"
},
"to": {
"ticker": "840000:3",
"protocol": "runes"
},
"sendAmount": "10",
"receiveAmount": "0.15",
"slippage": 0.05,
"feeRate": 1,
"btcAddress": "bc1q7w...",
"btcPubKey": "03b43bed...",
"ordAddress": "bc1ph....",
"ordPubKey": "2b0647e...",
"identifier": "<identifier from get quotes>"
}{
"orderId": "text",
"identifier": "text",
"expiresInMilliseconds": 1,
"psbt": "text"
}Last updated