Skip to main content

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

👉 Testnet (India)


📦 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

📧 shashankjoshi61@yahoo.com

Metadata

Release files for delta-rest-api-india 3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for delta-rest-api-india 3.2
File Size Uploaded Provenance
delta_rest_api_india-3.2.tar.gz 10.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for delta-rest-api-india 3.2
File Interpreter ABI Platform
delta_rest_api_india-3.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.8 kB

Release files / delta_rest_api_india-3.2.tar.gz

Download URL delta_rest_api_india-3.2.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ea000442f35a05640ace3f1181260c8920c7737f21fba39baa3f382c664b5aa8
BLAKE2b-256 checksum
How to use checksums
f6d07a2b829b673c34831d007cf8ff684c8500f34a5b98915457074bb324f434
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.4

Release files / delta_rest_api_india-3.2-py3-none-any.whl

Download URL delta_rest_api_india-3.2-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
686508fc1931191e6b47807b37bb31abe77b3bdabc26e39f6173a7f55bc08fdf
BLAKE2b-256 checksum
How to use checksums
f21afac12f197b5d47960503236138f414df37f3bde81a783f3d371b011e69d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.4

Security for delta-rest-api-india 3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page