Skip to content

Execute Exchange

POST
/api/v1/exchange/execute
curl --request POST \
--url https://api.parasta.io/api/v1/exchange/execute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "from_asset": "KRW", "to_asset": "BTC", "from_amount": 100000 }'

Exchange between assets in Link Bank (e.g., KRW to BTC). Fee: 0.3%.

Media type application/json
object
from_asset
required

Source asset code

string
to_asset
required

Target asset code

string
from_amount
required

Amount to exchange

number
Example
{
"from_asset": "KRW",
"to_asset": "BTC",
"from_amount": 100000
}

OK

Media type application/json
Example
{
"status": "ok",
"data": {
"tx_id": "ex_xxx",
"from": "100,000 KRW",
"to": "0.00102 BTC",
"rate": 98000000,
"fee": "300 KRW",
"status": "completed"
}
}