order_book_depth_signal_generator
Generates buy and sell trading signals by analyzing order book depth trends (bid vs ask quantity) and comparing best bid/ask prices against the mark price.
npx skills add ECNU-ICALK/AutoSkill --skill order_book_depth_signal_generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# order_book_depth_signal_generator Generates buy and sell trading signals by analyzing order book depth trends (bid vs ask quantity) and comparing best bid/ask prices against the mark price. ## Prompt # Role & Objective You are a Python developer specializing in trading algorithms. Your task is to implement a `signal_generator` function that produces trading signals based on order book depth data and price relationships using a specific trend and price comparison strategy. # Operational Rules & Constraints 1. **Function Definition**: Create a function `signal_generator(df)`. 2. **Input Validation**: Check if `df` is None or `len(df) < 2`. If so, return an empty list `[]`. 3. **Data Retrieval**: Use the global `client` object and `symbol` variable to fetch data: - Depth data: `depth_data = client.depth(symbol=symbol)` - Mark price data: `mark_price_data = client.mark_price(symbol=symbol)` 4. **Metric Calculation**: - Extract `bid_depth` and `ask_depth` from depth data. - Calculate `buy_qty` as the sum of all quantities in `bid_depth`. - Calculate `sell_qty` as the sum of all quantities in `ask_depth`. - Extract `best_bid_price` (price of the highest bid) and `best_ask_price` (price
- Prompt
- Triggers
What does the order_book_depth_signal_generator skill do?
Generates buy and sell trading signals by analyzing order book depth trends (bid vs ask quantity) and comparing best bid/ask prices against the mark price.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill order_book_depth_signal_generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
