API/Webhook to Generate "Share Order Setup" Links Programmatically
Summary
Allow external applications to programmatically generate "Share Order Setup" links via API, enabling trading scanners to create pre-filled order links for manual execution.
Background
Altrady already has an excellent "Share Order Setup" feature that:
✅ Includes Entry, Stop Loss, Take Profit values
✅ Requires manual confirmation (no auto-execution)
✅ Converts to fixed prices upon import
✅ Recipient must click "Place Order" manually
This is EXACTLY what external signal generators need!
The Problem
Currently, "Share Order Setup" links can only be created manually through the Trading Widget UI. There's no way for external applications to generate these links programmatically.
Proposed Solutions (in order of preference)
Option A: Deep Link URL Format
Allow direct URL construction with parameters:
https://app.altrady.com/share?exchange=bybit&symbol=BTCUSDT&side=long&entry=97500&stop=96800&tp1=98500&tp2=99500&tp3=101000
Option B: API Endpoint
Create an API endpoint that returns a shareable link:
POST https://api.altrady.com/v2/share/create
Body:
{
"exchange": "BYBI",
"symbol": "BTCUSDT",
"side": "long",
"entry_price": 97500,
"stop_loss": 96800,
"take_profit": [
{ "price": 98500, "percentage": 40 },
{ "price": 99500, "percentage": 30 },
{ "price": 101000, "percentage": 30 }
]
}
Response:
{
"share_url": "https://app.altrady.com/share/abc123"
}
Option C: Smart Order Preset Activation via URL
Allow URL parameters to load a specific preset with dynamic overrides:
https://app.altrady.com/trade?preset=MyScalping&symbol=BTCUSDT&entry=97500
Use Case
External trading scanners (Node.js, Python, etc.) generate signals with:
- Symbol, Direction
- Entry Price
- Stop Loss
- Multiple Take Profits (TP1, TP2, TP3)Traders want to:
- Click a link in Telegram/Dashboard
- See order pre-filled in Altrady
- Review and manually place the orderWhy Not Use Signal Bot?
Signal Bot = automatic execution (risky for manual traders)
Share Order Setup = manual confirmation (safe, desired behavior)
Parameters Requested
Parameter: exchange
Description: Exchange code
Example: BYBI, BINA
Parameter: symbol
Description: Market code
Example: BTCUSDT
Parameter: side
Description: Trade direction
Example: long, short
Parameter: entry
Description: Entry price (fixed)
Example: 97500.00
Parameter: stop
Description: Stop loss price
Example: 96800.00
Parameter: tp1, tp2, tp3
Description: Take profit levels
Example: 98500, 99500, 101000
Parameter: tp1_pct, tp2_pct, tp3_pct
Description: Position % per TP
Example: 40, 30, 30
Parameter: leverage
Description: Leverage (futures)
Example: 5
Benefits
- Seamless integration with external scanners
- Maintains manual confirmation safety
- Leverages existing "Share Order Setup" infrastructure
- Faster order entry from signals
- No accidental auto-execution risk
Suggested 9 months ago
1 comment
[email protected]
Hi,
This function already exists for signal provider. Please contact me via discord or telegram on the channels. My discord and telegram handle is @benoist
9 months ago