TradeWatch.io TypeScript SDK
Official SDK for the TradeWatch.io API .
TradeWatch.io is a market data platform and API for real-time and historical prices across crypto, stocks, indices, currencies, and commodities.
Try the Interactive API Playground
Want to test endpoints without writing code first? Use the TradeWatch Interactive API Playground to run requests directly in your browser.
Create an API key in the TradeWatch Dashboard .
Follow platform setup docs: Getting started .
Method
Required Params
Summary
Description
getUsage()
-
Usage statistics
Get the usage statistics of your API account
Method
Required Params
Summary
Description
convert(from, to)
from, to
Conversion
Convert one symbol to another
getHistoricalOhlc(symbol, resolution, start, end)
symbol, resolution, start, end
Get Historical Ohlc
Get historical OHLC candles for a symbol in a selected resolution and time range.
getHistoricalTicks(symbol, start, end)
symbol, start, end
Get Historical Ticks
Get raw historical ticks for a symbol in a selected time range using cursor pagination.
getInsights()
-
Get Insights
Get recent currencies insights.
getQuote(symbol)
symbol
Last Quote
Get the last quote tick for the provided symbol.
getQuotes(symbols)
symbols
Last Quotes
Get the last quote tick for the provided symbols.
getSymbols()
-
Available Symbols
Get list of available symbols
Method
Required Params
Summary
Description
convert(from, to)
from, to
Conversion
Convert one symbol to another
getExchanges()
-
Available Exchanges
Get list of available cryptocurrency exchanges
getHistoricalOhlc(symbol, resolution, start, end)
symbol, resolution, start, end
Get Historical Ohlc
Get historical OHLC candles for a symbol in a selected resolution and time range.
getHistoricalTicks(symbol, start, end)
symbol, start, end
Get Historical Ticks
Get raw historical ticks for a symbol in a selected time range using cursor pagination.
getInsights()
-
Get Insights
Get recent crypto insights.
getQuote(symbol)
symbol
Last Quote
Get the last quote tick for the provided symbol.
getQuotes(symbols)
symbols
Last Quotes
Get the last quote tick for the provided symbols.
getSymbols()
-
Available Symbols
Get list of available symbols
Method
Required Params
Summary
Description
getHistoricalOhlc(symbol, resolution, start, end)
symbol, resolution, start, end
Get Historical Ohlc
Get historical OHLC candles for a symbol in a selected resolution and time range.
getHistoricalTicks(symbol, start, end)
symbol, start, end
Get Historical Ticks
Get raw historical ticks for a symbol in a selected time range using cursor pagination.
getInsights()
-
Get Insights
Get recent indices insights.
getQuote(symbol)
symbol
Last Quote
Get the last quote tick for the provided symbol.
getQuotes(symbols)
symbols
Last Quotes
Get the last quote tick for the provided symbols.
getSymbols()
-
Available Symbols
Get list of available symbols
Method
Required Params
Summary
Description
getHistoricalOhlc(symbol, resolution, start, end)
symbol, resolution, start, end
Get Historical Ohlc
Get historical OHLC candles for a symbol in a selected resolution and time range.
getHistoricalTicks(symbol, start, end)
symbol, start, end
Get Historical Ticks
Get raw historical ticks for a symbol in a selected time range using cursor pagination.
getInsights()
-
Get Insights
Get recent stocks insights.
getMarketHolidays(start, end)
start, end
Get Market Holidays
Get market holidays. It takes half-days into account.
getMarketStatus()
-
Get Market Status
Get the current status (open or closed) of a market. It takes holidays and half-days into account but does not factor in circuit breakers or halts.
getMarkets()
-
Get Markets
Get details about the markets available in this API.
getQuote(symbol)
symbol
Last Quote
Get the last quote tick for the provided symbol.
getQuotes(symbols)
symbols
Last Quotes
Get the last quote tick for the provided symbols.
getStockData(symbol)
symbol
Get Stock Data
Get Stock Data
getSymbols()
-
Available Symbols
Get list of available symbols
getTradingHours(start, end)
start, end
Get Trading Hours
Get trading hours. It takes half-days into account.
stockGetCountries()
-
Available Countries
Get list of available countries
Method
Required Params
Summary
Description
getHistoricalOhlc(symbol, resolution, start, end)
symbol, resolution, start, end
Get Historical Ohlc
Get historical OHLC candles for a symbol in a selected resolution and time range.
getHistoricalTicks(symbol, start, end)
symbol, start, end
Get Historical Ticks
Get raw historical ticks for a symbol in a selected time range using cursor pagination.
getInsights()
-
Get Insights
Get recent commodities insights.
getQuote(symbol)
symbol
Last Quote
Get the last quote tick for the provided symbol.
getQuotes(symbols)
symbols
Last Quotes
Get the last quote tick for the provided symbols.
getSymbols()
-
Available Symbols
Get list of available symbols
getTypes()
-
Available Types
Get list of available commodity types