TradeTech API Documentation - Crypto
Welcome to the TradeTech API Crypto Documentation! Our API provides seamless access to comprehensive financial data for various cryptocurrencies. Whether you're an analyst, developer, or enthusiast, you’ll find our endpoints intuitive and robust for fetching real-time and historical cryptocurrency information. Dive in and explore the endless possibilities with TradeTech API—your gateway to smarter financial insights in the crypto world.
General
Crypto
Crypto Information
Fetch real-time and historical data for a cryptocurrency. The data is sourced from the CoinGeckoAPI. We acknowledge and appreciate CoinGecko for providing this data.
GET /crypto?coin_id=<coin_id>¤cy=<currency>&days=<days>&indicator=<indicator>
Example: /crypto?coin_id=bitcoin¤cy=usd&days=1&indicator=rsi:window=14&indicator=sma:window=20&indicator=macd:window_slow=26&indicator=window_fast=12&indicator=window_sign=9
Parameters:
coin_id
: The ID of the cryptocurrency (e.g., bitcoin, ethereum).currency
: The currency in which to return market data (e.g., usd, eur).days
: The number of days for which to return data.indicator
: The technical indicators to apply, with parameters (e.g., rsi:window=14, sma:window=20, macd:window_slow=26:window_fast=12:window_sign=9).
Example JSON Output
{
"2024-06-05 00:00:00": {
"price": 30000,
"rsi": 70.0,
"sma": 29500,
"macd": 50,
"macd_signal": 45,
"macd_diff": 5
},
...
}
Request Examples
Crypto Indicators
The `/crypto` endpoint supports various technical indicators that can be applied to the cryptocurrency data. These indicators help analyze the price movements and market trends. The indicators and their parameters are passed as query parameters in the API request.
Supported Indicators:
rsi:window
- Relative Strength Index. Example:rsi:window=14
sma:window
- Simple Moving Average. Example:sma:window=20
ema:window
- Exponential Moving Average. Example:ema:window=20
macd:window_slow,window_fast,window_sign
- Moving Average Convergence Divergence. Example:macd:window_slow=26:window_fast=12:window_sign=9
adx:window
- Average Directional Index. Example:adx:window=14
bollinger_bands:window,window_dev
- Bollinger Bands. Example:bollinger_bands:window=20:window_dev=2
stc:window,window_slow,window_fast
- Schaff Trend Cycle. Example:stc:window=14:window_slow=50:window_fast=23
wma:window
- Weighted Moving Average. Example:wma:window=20
vortex:window
- Vortex Indicator. Example:vortex:window=14
psar:step,max_step
- Parabolic SAR. Example:psar:step=0.02:max_step=0.2
aroon:window
- Aroon Indicator. Example:aroon:window=25
cci:window
- Commodity Channel Index. Example:cci:window=20
dpo:window
- Detrended Price Oscillator. Example:dpo:window=20
ichimoku:window1,window2,window3
- Ichimoku Cloud. Example:ichimoku:window1=9:window2=26:window3=52
kst:roc1,roc2,roc3,roc4,window1,window2,window3,window4,window_sign
- KST Oscillator. Example:kst:roc1=10:roc2=15:roc3=20:roc4=30:window1=10:window2=10:window3=10:window4=15:window_sign=9
trix:window
- Trix. Example:trix:window=15
stochastic:window_k,window_d,window_smooth
- Stochastic Oscillator. Example:stochastic:window_k=14:window_d=3:window_smooth=3
awesome_oscillator:window1,window2
- Awesome Oscillator. Example:awesome_oscillator:window1=5:window2=34
kama:window
- Kaufman's Adaptive Moving Average. Example:kama:window=10
ppo:window_slow,window_fast,window_sign
- Percentage Price Oscillator. Example:ppo:window_slow=26:window_fast=12:window_sign=9
roc:window
- Rate of Change. Example:roc:window=12
stoch_rsi:window
- Stochastic RSI. Example:stoch_rsi:window=14
tsi:window_slow,window_fast
- True Strength Index. Example:tsi:window_slow=25:window_fast=13
ultimate_oscillator:window1,window2,window3
- Ultimate Oscillator. Example:ultimate_oscillator:window1=7:window2=14:window3=28
williams_r:window
- Williams %R. Example:williams_r:window=14
atr:window
- Average True Range. Example:atr:window=14
donchian_channel:window
- Donchian Channel. Example:donchian_channel:window=20
keltner_channel:window
- Keltner Channel. Example:keltner_channel:window=20
ulcer_index:window
- Ulcer Index. Example:ulcer_index:window=14
eom:window
- Ease of Movement. Example:eom:window=14
vpt:window
- Volume Price Trend. Example:vpt:window=14
force_index:window
- Force Index. Example:force_index:window=13
mfi:window
- Money Flow Index. Example:mfi:window=14
nvi:window
- Negative Volume Index. Example:nvi:window=100
obv:window
- On-Balance Volume. Example:obv:window=100
vwap:window
- Volume Weighted Average Price. Example:vwap:window=14
acc_dist_index:window
- Accumulation/Distribution Index. Example:acc_dist_index:window=100
cmf:window
- Chaikin Money Flow. Example:cmf:window=20
Refer to the API request examples in the "Crypto Information" section to see how to use these indicators in the API call.