Skip to main content
POST
/
exchange
/
market-makers
Create a market maker
curl --request POST \
  --url https://api.example.com/exchange/market-makers \
  --header 'Content-Type: application/json' \
  --data '
{
  "business_id": "7da8e726-a1bc-11ee-80cf-560f156a658b",
  "contacts": [
    {
      "id": "7da8e726-a1bc-11ee-80cf-560f156a658b",
      "type": "user"
    }
  ],
  "swap_provider": true,
  "swap_weight": 50
}
'
{
  "data": {
    "archived": false,
    "contacts": [
      {
        "email": "[email protected]",
        "id": "7da8e726-a1bc-11ee-80cf-560f156a658b",
        "name": "Test User",
        "type": "user"
      }
    ],
    "email": "[email protected]",
    "entity": {
      "id": "6ebe0a0f-bb8f-49be-80ea-c6b72c348fea",
      "type": "business"
    },
    "id": "7da75a46-a1bc-11ee-9a32-560f156a658b",
    "name": "Anon Nymous",
    "swap_provider": false,
    "swap_weight": 0
  }
}

Body

application/json

Market maker params

Market maker creation params

business_id
string
required

Business id

contacts
Contact · object[]
swap_provider
boolean

Is swap provider

swap_weight
integer

Swap weight

Response

Market maker

Response schema for a single market maker

data
MarketMaker · object
Example:
{
"archived": false,
"contacts": [
{
"email": "[email protected]",
"id": "7da8e726-a1bc-11ee-80cf-560f156a658b",
"name": "Test User",
"type": "user"
}
],
"email": "[email protected]",
"entity": {
"id": "6ebe0a0f-bb8f-49be-80ea-c6b72c348fea",
"type": "business"
},
"id": "7da75a46-a1bc-11ee-9a32-560f156a658b",
"name": "Anon Nymous",
"swap_provider": false,
"swap_weight": 0
}