Status

GET
/

Shows status of API.


Authentication

Authentication is required for most of the API endpoints. Endpoints marked with api_token will require authentication.

When accessing API using GET method api_token can be passed directly in request URL:
https://api.stockinvest.us/v1/exchange/list?api_token=your_api_token

If POST method is used api_token should be passed in the body of POST request:
curl -d 'api_token=your_api_token' https://api.stockinvest.us/v1/exchange/list


Exchanges

Our API contains data for several exchanges. This list can be checked by accessing below endpoint. Exchanges are constantly added.

GET POST
/v1/exchange/list

Lists out all exchanges in the database.

api_token
GET POST
/v1/exchange/{symbol}

Prints out exchange related details.

api_token
GET POST
/v1/exchange/{symbol}/ticker/list

Lists out all tickers in specified exchange.

api_token

Tickers

As symbols are not unique for each stock it might happen that same symbol can be used for different companies. Knowing exchange where the stocks are being traded will let you access specific items.

To simplify search of specific stock and to find out for which exchange it belongs our API has search function.

GET POST
/v1/ticker/{symbol}

Searches our database and lists out all stocks that has specified symbol.

api_token
GET POST
/v1/exchange/{exchangeSymbol}/ticker/{symbol}

Prints out details of specified ticker.

api_token
GET POST
/v1/exchange/{exchangeSymbol}/ticker/{symbol}/quote

Prints out last trading end of day quote for specified ticker.

api_token
GET POST
/v1/exchange/{exchangeSymbol}/ticker/{symbol}/history

Returns all historical data for specified ticker.

api_token

Last donation

Do you find our website useful too?
Help us improve by making a small donation or
Get PRO features

START FREE 5-DAY TRIAL
START FREE 5-DAY TRIAL