Skip to main content

Delta Exchange (delta.exchange) broker adapter for freqtrade — installable freqtrade plugin (REST Phase-1, websockets Phase-2).

Project description

freqtrade-delta-exchange

Trade on Delta Exchange with freqtrade. This package plugs Delta into freqtrade — install it and "name": "delta" works in your freqtrade config, just like any built-in exchange.

Works with both Delta International and Delta India, live and demo (paper) accounts.

Install

pip install freqtrade-delta-exchange

That's it — no freqtrade fork or patch needed. To confirm it registered:

freqtrade list-exchanges | grep -i delta

Quick start

You need two files: a config and a secrets file (for your API keys).

1. config.json — trading settings:

{
  "dry_run": true,
  "trading_mode": "futures",
  "margin_mode": "cross",
  "stake_currency": "USD",
  "stake_amount": 100,
  "max_open_trades": 1,
  "timeframe": "1h",
  "exchange": {
    "name": "delta",
    "india": true,
    "sandbox": true,
    "key": "",
    "secret": "",
    "pair_whitelist": ["BTC/USD:USD"],
    "pair_blacklist": []
  },
  "pairlists": [{ "method": "StaticPairList" }]
}

2. delta-secrets.json — your API keys (never commit this file):

{
  "exchange": {
    "key": "YOUR_API_KEY",
    "secret": "YOUR_API_SECRET"
  }
}

3. Run:

freqtrade trade -c config.json -c delta-secrets.json

The 3 settings that matter

Setting Values What it does
exchange.name "delta" Use this adapter.
exchange.india true / false true = Delta India (BTC/USD:USD, settles in USD). false = Delta International (BTC/USDT:USDT, settles in USDT).
exchange.sandbox true / false true = demo account (paper, fake money). false = live account (real money).

Start with "sandbox": true + "dry_run": true. When that works, try "sandbox": true + "dry_run": false to see real orders on your demo dashboard. Only flip sandbox to false when you're ready to go live.

Matching pairs and stake currency

Delta India Delta International
pair_whitelist "BTC/USD:USD" "BTC/USDT:USDT"
stake_currency "USD" "USDT"

Using the wrong pair/currency combo is the most common setup mistake — the pair must match the account type.

API keys & 2FA

Create keys in your Delta account (demo keys from the demo site, live keys from the live site — they are not interchangeable).

If your key has 2FA enabled, add the base32 TOTP secret to the secrets file:

{
  "exchange": {
    "key": "YOUR_API_KEY",
    "secret": "YOUR_API_SECRET",
    "totp_secret": "JGFRS7RYJWMJWDKV"
  }
}

Examples

Ready-made configs live in examples/:

  • delta-india-demo-smoke.config.json — India demo account, 1-minute smoke test
  • delta-india-demo.config.json — India demo account
  • delta-india-live.config.json — India live account

Limitations

  • Funding-rate history is not available on Delta (no API endpoint), so backtests don't back-adjust funding fees.
  • Leverage tiers are not published by Delta; the adapter assumes a flat 0.5% maintenance margin for liquidation estimates.

Links

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

freqtrade_delta_exchange-0.3.3.tar.gz (201.4 kB view details)

Uploaded Source

Built Distribution

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

freqtrade_delta_exchange-0.3.3-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file freqtrade_delta_exchange-0.3.3.tar.gz.

File metadata

  • Download URL: freqtrade_delta_exchange-0.3.3.tar.gz
  • Upload date:
  • Size: 201.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for freqtrade_delta_exchange-0.3.3.tar.gz
Algorithm Hash digest
SHA256 5b783747b2d82e119ab6aac3bf66db7fd33af7ec57e17f1362597c0aac6b5920
MD5 e95cfc4b95715c3a5dc41d6379a13866
BLAKE2b-256 885f04204efe2429f9f2d84df90e21490769436a92f4bbf786c4eb9616b53ca9

See more details on using hashes here.

File details

Details for the file freqtrade_delta_exchange-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: freqtrade_delta_exchange-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for freqtrade_delta_exchange-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1b907bac02f8be35794f5469b6ede1f7b0b7bfe66f3af86ae9ab3f2bc4b62244
MD5 d25621868c591d4862240d7b22cff58c
BLAKE2b-256 30e6711995cc919782974634d7c55727ffdb2a3c590d7ac2ecca6338f1c35bd6

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