Calculator API > /broker > Oanda Broker Service Endpoint
This endpoint manages Oanda broker interactions and transactions.
Endpoint Request
Method: GET
URL: /broker
Request Body
{
"symbol": "EUR_USD"
}
Request Parameters
| parameter | is required | detail |
|---|---|---|
| symbol | required | The trading instrument symbol. Must be a valid Oanda currency pair string. |
Example Request:
curl -X POST
-H "Content-Type: application/json"
-d '{"symbol": "EUR_USD"}' http://localhost:8080/broker
Response / 200 / Success
Code:
200 OK
Content:
{
"status": "OK"
}
Response / 400 / Bad Request
Code:
400 Bad Request
Content:
{
"error": "Invalid input parameters"
}
Possible Errors Causes
400 Bad Request: If the query parameters or request body are missing or invalid.
500 Internal Server Error: If an unexpected error occurs during broker data retrieval.
Additional Information
This endpoint is intended for broker account queries and transaction management.
For more complex mathematical operations, consider using the Analytics API.