GET Quote
Returns the current quote of the specified instrument from the data feed/connection of the given account.
Quote a specific instrument
GET
/v1/api/accounts/{account}/quote
Headers
Query Parameters
Name | Type | Required | Description |
---|
| | | |
| | | URL-encoded instrument name (e.g., ES%2012-24) |
Code Examples (coming soon)
const message = "hello world";
console.log(message);
url = "https://app.crosstrade.io/v1/api/accounts/sim101/quote?instrument=ES%2012-24"
headers = {
"Authorization": "Bearer TOKEN",
}
response = requests.get(url, headers=headers)
print(f"Response Code: {response.status_code}, Response Text: {response.text}")
Response
{
"instrument": "ES 12-24",
"description": "E-mini S&P 500 Futures",
"type": "Future",
"bid": 5781.75,
"ask": 5782.25,
"last": 5782.0,
"open": 5792.25,
"high": 5798.75,
"low": 5773.5,
"close": 5792.0,
"volume": 574915,
"tickSize": 0.25,
"pointValue": 50.0,
"exchange": "Globex",
"expiration": "12/1/2024 12:00:00 AM",
"tradingHours": "CME US Index Futures ETH",
"quoteTime": "9/25/2024 9:51:03 AM",
"success": true
}
{
"error": "Invalid request"
}
Last updated