Activate Spot Quote Provider
Makes a saved provider the platform's spot price source. Exactly one provider is active at a time: activating one deactivates all the others, so there is no separate deactivate call.
The provider must have been saved with Upsert Spot Quote Provider first. Activation does not test the provider; run Test Spot Quote Connection before switching. The processes that refresh spot prices pick up the new provider on their own refresh window; this server only reads the stored prices.
Platform owner only. The caller's node must be the platform root node; any other caller is refused with 403 / 10005.
Required permission: spot-quote-provider:update
Request
POST /v2/admin/spot-quote-providers/{provider}/activate
Parameters
| Name | Type | In | Description |
|---|---|---|---|
provider | string | path | Required. Provider key: cryptocompare or coinmarketcap |
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer <access_token> |
Example
curl --request POST \
--url '{{baseUrl}}/v2/admin/spot-quote-providers/coinmarketcap/activate' \
--header 'Authorization: Bearer <access_token>'
Response
204 No Content with an empty body.
Errors
| Status | Code | Description |
|---|---|---|
| 400 | 10015 | Unsupported provider key |
| 400 | 10000 | The provider has never been saved (message: spot quote provider setting not found). Note that the other providers have already been deactivated when this is returned |
| 403 | 10005 | The caller is not the platform owner (domain 2) |
See Errors for the error format and common codes.