DELTA ALOG
Project description
delta_rest_api_india
A simple Python wrapper for Delta Exchange (India) REST API — allows trading on both Testnet and Production environments.
🌐 Create an Account
📦 Installation
pip install delta_rest_api_india
🚀 Quick Start
import delta_rest_api_india as delta_algo
# --- API Configuration ---
api_key = "" # Your API key
api_secret = "" # Your API secret
price = "" # Needed for LIMIT orders (default is MARKET)
SL = "" # Stop Loss (for bracket orders)
TP = "" # Take Profit (for bracket orders)
LOT = "" # Quantity
side = "" # BUY / SELL
product_symbol = "" # Example: BTCUSD / ETHUSD
product_id = "" # Example: BTCUSD = 27, ETHUSD = 3136
base_url = "" # Use either PROD or TESTNET URL
timeframe = "" # Chart timeframe
symbol = '' # For better performance we use binance exchange so please use symbol with UPPER CASE Like e.g FOR ETH ETH/USDT and BTC BTC/USDT
lookback = # [OPTIONAL] Number of candles to load, default 500
ema_value = # [OPTIONAL] EMA VALUE e.g 10 or 22, default 9
ma_value = # [OPTIONAL] MA VALUE e.g 10 or 22, default 20
swing_lookback = # [OPTIONAL] Candles to look back for swing detection, default 50
FVGlimit = # [OPTIONAL] Number of candles to fetch for Fair Value Gaps, default 500
RSIlimit = # [OPTIONAL] Number of candles to fetch for RSI loop back, default 500
rsi_period = # [OPTIONAL] Number of candles to fetch for RSI, default 14
overbought = # [OPTIONAL] Number of candles to fetch for RSI, default 70
oversold = # [OPTIONAL] Number of candles to fetch for RSI, default 30
timeframeT1 = '' # [OPTIONAL] MENTION trading timeframe e.g 5m , default 15m
timeframeT2 = '' # [OPTIONAL] Higher timeframe e.g 15m , default 1h
timeframeT3 = '' # [OPTIONAL] Higher timeframe e.g 1h , default 4h
timeframeT4 = '' # [OPTIONAL] Higher timeframe e.g 1h , default 1d
🌍 Base URLs
| Environment | URL |
|---|---|
| Production (India) | https://api.india.delta.exchange |
| Testnet (India) | https://cdn-ind.testnet.deltaex.org |
🧩 API Methods
➕ Place a Bracket Order
delta_algo.PLACE_BRACKET_ORDER(
api_key, api_secret, price, SL, TP, LOT, side,
product_symbol, product_id, base_url
)
💰 Place a Normal Order
delta_algo.PLACE_ORDER(
api_key, api_secret, price, LOT, side, product_id, base_url
)
💵 Check Balance
delta_algo.BALANCE_CHECK(api_key, api_secret, base_url)
📈 Get Current Price
delta_algo.CURRENT_PRICE(symbol)
📈 Get EMA Price
delta_algo.EMA(symbol, lookback, timeframe, ema_value)
📈 Get MOVING AVERAGE Price
delta_algo.MOVING_AVG(symbol, lookback, timeframe, ma_value)
📈 Get EMA AND MOVING AVERAGE CROSSOVER
delta_algo.EMA_MA_CROSSOVER(symbol, lookback, timeframe, ma_value, ema_value)
📈 Get SUPPORT AND RESISTANCE
delta_algo.get_support_resistance(symbol, timeframe, lookback, swing_lookback)
📈 Get PIVOT BASE SUPPORT AND RESISTANCE
delta_algo.pivot_support_resistance(symbol, timeframe, swing_lookback)
📈 CANDLE PATTERNE Detection
delta_algo.CANDLE_PATTERNE(symbol,timeframe)
📈 CANDLE PATTERNE Detection
delta_algo.CANDLE_PATTERNE(symbol,timeframe)
📈 RSI Indicator
delta_algo.RSI(symbol, timeframe, RSIlimit, rsi_period, overbought, oversold)
📈 FAIR VALUE GAP Detection
delta_algo.FVG(symbol, timeframe)
📈 Multiple timeframe analysis (RSI, CANDLE PATTERNE, SIDEWAYS OR TRANDING, FAIR VALUE GAP)
delta_algo.MARKET_MOOD(symbol, timeframeT1, timeframeT2, timeframeT3, timeframeT4)
🧠 Upcoming Features (Next Version)
- PLAN TO DESING DASHBORAD LIKE ALL IN ONE PROOF WITH LIVE MARKET STATUS
📬 For Feedback and Contact
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
delta_rest_api_india-3.2.tar.gz
(10.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file delta_rest_api_india-3.2.tar.gz.
File metadata
- Download URL: delta_rest_api_india-3.2.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea000442f35a05640ace3f1181260c8920c7737f21fba39baa3f382c664b5aa8
|
|
| MD5 |
7815877e2bece0994310d0284da050e4
|
|
| BLAKE2b-256 |
f6d07a2b829b673c34831d007cf8ff684c8500f34a5b98915457074bb324f434
|
File details
Details for the file delta_rest_api_india-3.2-py3-none-any.whl.
File metadata
- Download URL: delta_rest_api_india-3.2-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
686508fc1931191e6b47807b37bb31abe77b3bdabc26e39f6173a7f55bc08fdf
|
|
| MD5 |
f23413718ba6c6db9aa4252b95a32496
|
|
| BLAKE2b-256 |
f21afac12f197b5d47960503236138f414df37f3bde81a783f3d371b011e69d5
|