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
The /quote endpoint can accept both single instruments and multiple instruments in a comma-separated list.
Example:
/v1/api/accounts/Sim101/quote?instrument=ESU5
/v1/api/accounts/Sim101/quote?instrument=ESU5,NQU5
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Query Parameters
Name
Type
Required
Description
account
string
Required
Name of account in NT8
instrument
integer
Required
URL-encoded instrument name (e.g., ES%2012-25), can also be CSV list
Code Examples
import requests
token = 'my-secret-token'
url = "https://app.crosstrade.io/v1/api/accounts/Sim101/quote"
headers = {
"Authorization": f"Bearer {token}",
"Content-Type": "application/json"
}
params = {
"instrument": "NQ 12-25"
}
try:
response = requests.get(url, headers=headers, params=params)
print(f"Response Code: {response.status_code}, Response Text: {response.text}")
except Exception as e:
print(f"An error occurred: {e}")Response
Last updated