Skip to main content

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​

NameTypeInDescription
providerstringpathRequired. Provider key: cryptocompare or coinmarketcap

Headers​

NameDescription
AuthorizationRequired. 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​

StatusCodeDescription
40010015Unsupported provider key
40010000The 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
40310005The caller is not the platform owner (domain 2)

See Errors for the error format and common codes.