Skip to main content
PATCH
/
exchange
/
swap-configurations
/
{id}
Update a swap configuration
curl --request PATCH \
  --url https://api.example.com/exchange/swap-configurations/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "symbol": "USD-NGN",
  "ttl": 10,
  "type": "buy"
}
'
{
  "data": {
    "id": "<string>",
    "order_type": "sell",
    "symbol": "<string>",
    "ttl": 123
  }
}

Path Parameters

id
string
required

Id

Body

application/json

swap configuration update params

symbol
string

Currency pair

ttl
integer | null

Price TTL, in seconds

type
enum<string>

Order type

Available options:
sell,
buy

Response

SwapConfiguration

Response schema for a single swap configuration

data
SwapConfiguration · object

Response schema for a single swap configuration