https://b-api.longbridge.xyz/forex/rate/createAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Request body application/json
Channel Name. Channel / rate type, a dropdown selection; for multi-select they are joined into a comma-separated string.
Allowed values: MANUAL_CURRENT (Spot rate), MANUAL_ACCOUNT (Ledger rate), CCASS
MANUAL_CURRENTMANUAL_ACCOUNTCCASS
Rate Source From. Rate source, single-select, e.g. SINGLE (a single currency pair).
Allowed values:
CCASS- Auto Follow HKEXSINGLE- Single Transaction Add
CCASSSINGLE
Base Currency. Base currency, a dropdown selection (currency list, e.g. USD/HKD/CNH).
Other Currency. Counter currency, a dropdown selection (currency list).
Record Date. Record date, format YYYYMMDD; must not be later than the current time.
Bid Rate. Buy rate, which must be greater than 0 (precision per the currency-pair configuration).
Offer Rate. Sell rate, which must be greater than 0 (precision per the currency-pair configuration).
Average Rate. The mid rate, which must be greater than 0 (precision per the currency-pair configuration).
Audit Context. Automatically attached audit fields, containing $behavior (operation description) and $action (fixed value add).
Responses
HTTP 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureNo nested fields
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields