trading-alerts
Price alerts for any market - above or below a price, a trade's stop and target (long or short), a percent move from the previous close, a time on the exchange clock, the opening bell and minutes before the close, plus stop and target alerts for every open trade in the journal in one go. Works out each exchange's session from the data (NYSE, Nasdaq, NSE, BSE, LSE, TSE...) so holidays need no tables; each alert rings once; optional desktop notifications. Use when the user says "alert me when", "tell me if RELIANCE crosses 1400", "watch my stop", "remind me to close by 3:20", "is the market open", "when does NSE open", or right after a trade is planned or opened.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- trading-alerts
- license
- MIT
- metadata
- { "pack": "trading-skills", "author": "reddygopalkrishna", "version": "0.2.0" }
- description
- Price alerts for any market - above or below a price, a trade's stop and target (long or short), a percent move from the previous close, a time on the exchange clock, the opening bell and minutes before the close, plus stop and target alerts for every open trade in the journal in one go. Works out each exchange's session from the data (NYSE, Nasdaq, NSE, BSE, LSE, TSE...) so holidays need no tables; each alert rings once; optional desktop notifications. Use when the user says "alert me when", "tell me if RELIANCE crosses 1400", "watch my stop", "remind me to close by 3:20", "is the market open", "when does NSE open", or right after a trade is planned or opened.
02 资源文件 37
- 许可证LICENSE1.3 KB
- 脚本scripts/_vendor/tradekit/__init__.py516 B
- 脚本scripts/_vendor/tradekit/alerts.py7.5 KB
- 脚本scripts/_vendor/tradekit/analysis.py10.3 KB
- 脚本scripts/_vendor/tradekit/backtest.py17.8 KB
- 脚本scripts/_vendor/tradekit/brokers/__init__.py1022 B
- 脚本scripts/_vendor/tradekit/brokers/_rest.py2.7 KB
- 脚本scripts/_vendor/tradekit/brokers/base.py3.5 KB
- 脚本scripts/_vendor/tradekit/brokers/dhan.py6.8 KB
- 脚本scripts/_vendor/tradekit/brokers/fyers.py7.1 KB
- 脚本scripts/_vendor/tradekit/brokers/groww.py7.7 KB
- 脚本scripts/_vendor/tradekit/brokers/kite.py14.5 KB
- 脚本scripts/_vendor/tradekit/brokers/paper.py12.7 KB
- 脚本scripts/_vendor/tradekit/brokers/upstox.py7.8 KB
- 脚本scripts/_vendor/tradekit/cli.py2.4 KB
- 脚本scripts/_vendor/tradekit/config.py6.0 KB
- 脚本scripts/_vendor/tradekit/data.py18.5 KB
- 脚本scripts/_vendor/tradekit/disclosures.py17.4 KB
- 脚本scripts/_vendor/tradekit/expr.py19.0 KB
- 脚本scripts/_vendor/tradekit/feeds.py9.4 KB
- 脚本scripts/_vendor/tradekit/frame.py8.9 KB
- 脚本scripts/_vendor/tradekit/fundamentals.py6.1 KB
- 脚本scripts/_vendor/tradekit/gate.py8.1 KB
- 脚本scripts/_vendor/tradekit/http.py4.3 KB
- 脚本scripts/_vendor/tradekit/indicators.py13.1 KB
- 脚本scripts/_vendor/tradekit/journal.py11.1 KB
- 脚本scripts/_vendor/tradekit/metrics.py6.2 KB
- 脚本scripts/_vendor/tradekit/montecarlo.py7.8 KB
- 脚本scripts/_vendor/tradekit/options.py24.4 KB
- 脚本scripts/_vendor/tradekit/patterns.py12.9 KB
- 脚本scripts/_vendor/tradekit/report.py8.4 KB
- 脚本scripts/_vendor/tradekit/risk.py4.7 KB
- 脚本scripts/_vendor/tradekit/sec.py12.0 KB
- 脚本scripts/_vendor/tradekit/session.py9.4 KB
- 脚本scripts/alerts.py10.1 KB
- 参考文档SOURCE.md375 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Price Alerts (trading-alerts)
Alerts watch the numbers so the user does not have to stare at a chart. An alert is information, never an order: when a stop alert rings, nothing is sold by this skill. Protective orders at the broker (bracket, stop-loss, GTT from trading-broker) do the stopping; alerts say what happened.
python3 scripts/alerts.py add --symbol RELIANCE.NS --above 1400
python3 scripts/alerts.py add --symbol AAPL --below 340 --note "under the 50-day"
python3 scripts/alerts.py add --symbol TSLA --stop 358.32 --side long # rings at or below
python3 scripts/alerts.py add --symbol TSLA --target 370.04 --side long # rings at or above
python3 scripts/alerts.py add --symbol INFY.NS --pct 3 --direction down
python3 scripts/alerts.py add --symbol NIFTYBEES.NS --open # NSE opening bell
python3 scripts/alerts.py add --symbol RELIANCE.NS --close 10 # 10 min before NSE closes
python3 scripts/alerts.py add --symbol AAPL --at 15:50 --label "flat by close"
python3 scripts/alerts.py add --from-journal # every open trade's stop + target
python3 scripts/alerts.py check # exit 0 = something rang, 1 = nothing
python3 scripts/alerts.py check --notify # also a desktop notification
python3 scripts/alerts.py clock RELIANCE.NS AAPL # open / pre-open / closed, session times
python3 scripts/alerts.py list | remove ID | reset [ID]
Options on add: --date YYYY-MM-DD (watch that day only), --rearm (ring again after the price
goes back across), --note.
How it works
checkfetches only the symbols in the rules (free, delayed Yahoo quotes; or the configured provider, e.g. a broker feed for live prices) and rings each rule once. Time, open and close alerts ring once per trading day, only on days the exchange has a session.- Times are the exchange's local time (NSE 09:15-15:30 IST, NYSE 09:30-16:00 ET...), worked out from the data, never from the computer's time zone.
- Rules:
~/.trading-skills/alerts.json; what rang:state/alerts.json.
Steps
- Right after trading-plan / trading-broker opens a trade, offer
add --from-journaland a close-of-day alert for intraday trades. Confirm every new rule back: symbol, type, level, day. - While trades are open, run
checkevery few minutes:/loop 5mor a scheduled task. Quotes are delayed and a price can pass a level between two checks: say so when it matters. - When a stop or target rings, check the position at the broker (trading-broker
positions) and record the fill in trading-journal. When a close alert rings for an intraday trade, close it the normal way: trading-risk check -> trading-broker preview -> the user's explicit confirm. Never act for the user.
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.