Skip to main content
PUT
/
rate-oracle
/
config
Update Rate Oracle Config
curl --request PUT \
  --url http://localhost:8000/rate-oracle/config \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "rate_oracle_source": {
    "name": "binance"
  },
  "global_token": {
    "global_token_name": "USDT",
    "global_token_symbol": "$"
  }
}
'
{
  "success": true,
  "message": "<string>",
  "config": {
    "rate_oracle_source": {
      "name": "binance"
    },
    "global_token": {
      "global_token_name": "USDT",
      "global_token_symbol": "$"
    }
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request model for updating rate oracle configuration.

rate_oracle_source
RateOracleSourceConfig · object

New rate oracle source configuration (optional)

global_token
GlobalTokenConfig · object

New global token configuration (optional)

Response

Successful Response

Response for rate oracle configuration update.

success
boolean
required

Whether the update was successful

message
string
required

Status message

config
RateOracleConfig · object
required

Updated configuration