Skip to main content

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

👉 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

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

delta_rest_api_india-3.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

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

Hashes for delta_rest_api_india-3.2.tar.gz
Algorithm Hash digest
SHA256 ea000442f35a05640ace3f1181260c8920c7737f21fba39baa3f382c664b5aa8
MD5 7815877e2bece0994310d0284da050e4
BLAKE2b-256 f6d07a2b829b673c34831d007cf8ff684c8500f34a5b98915457074bb324f434

See more details on using hashes here.

File details

Details for the file delta_rest_api_india-3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for delta_rest_api_india-3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 686508fc1931191e6b47807b37bb31abe77b3bdabc26e39f6173a7f55bc08fdf
MD5 f23413718ba6c6db9aa4252b95a32496
BLAKE2b-256 f21afac12f197b5d47960503236138f414df37f3bde81a783f3d371b011e69d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page