Create a Market Maker
The endpoint below creates a new market maker for the exchange.
Request
-
Headers:
Authorization: Bearer <token>
-
Body (required):
- Media Type:
application/json
- Media Type:
Fields:
-
business_id
(string, required): The ID of the business to be assigned as a market maker. -
contacts
(array of objects, required): A list of associated contact users. -
id
(string, required): Contact user ID. -
type
(string, required): The type of contact (e.g., user). -
swap_provider
(boolean, required): Indicates if the market maker provides swaps. -
swap_weight
(integer, required): The weight or priority for the swap service (e.g., 0–100).
Responses:
201 Created
-
Media Type:
application/json
-
Sample Response:
-
400 Bad Request- Returned if the request contains invalid data.
-
403 Forbidden- Returned if the user is not authorized to create a market maker.
-
422 Unprocessable Entity- Returned if required fields are missing or invalid.