Reference Data

Get brokerage instruments

get
https://api.snaptrade.com/api/v1/brokerages/{slug}/instruments

Returns a list of all brokerage instruments available for a given brokerage. Not all brokerages support this. The ones that don't will return an empty list.

Execute an API Request

Path
slugstringrequired

A short, unique identifier for the brokerage. It is usually the name of the brokerage in capital letters and will never change.

Authorization
Request
Installation
$
npm install snaptrade-typescript-sdk
1
import { Snaptrade } from "snaptrade-typescript-sdk";
2
3
const snaptrade = new Snaptrade({
4
clientId: "PARTNER_CLIENT_ID",
5
consumerKey: "CONSUMER_KEY",
6
});
7
8
const response =
9
await snaptrade.referenceData.listAllBrokerageInstruments(
10
{ slug: "QUESTRADE" },
11
);
12
console.log(response.data);

Response fields

object
instrumentsarray of objects
1
{
2
"instruments": [
3
{
4
"symbol": "AAPL",
5
"exchange_mic": "XNAS",
6
"tradeable": true,
7
"fractionable": true,
8
"universal_symbol_id": "2bcd7cc3-e922-4976-bce1-9858296801c3"
9
}
10
]
11
}