API Reference

Execute Trade

Accept a particular quote and execute the trade. The API Key must have the Place and Manage Orders permission enabled (via OSL website).

🔐

To call this endpoint, the API Key need to have the Place and Manage Orders permission enabled (via OSL website).

responseCode Code Table

CodeDescription
INVALID_QUOTE_IDInvalid quote id provided
QUOTE_EXPIREDThe quote has expired
EXECUTEDThe trade has been executed
INSUFFICIENT_FUNDInsufficient fund in the account
DAILY_LIMIT_EXCEEDEDDaily limit breached
Body Params
int64
required

The current Unix time in microseconds.

tradeRequest
object
required

A trade request object consists of the following fields.

Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json