Reference Data

Get exchanges

get
https://api.snaptrade.com/api/v1/exchanges

Returns a list of all supported Exchanges.

Execute an API Request

No request parameters.
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.getStockExchanges();
10
console.log(response.data);

Response fields

array of objects
object

Describes a single stock or crypto exchange.

1
[
2
{
3
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
4
"code": "TSX",
5
"mic_code": "XTSE",
6
"name": "Toronto Stock Exchange",
7
"timezone": "America/New_York",
8
"start_time": "09:30:00",
9
"close_time": "16:00:00",
10
"suffix": ".TO"
11
}
12
]