Filter and Print Bids Above Mark Price
A Python coding skill to filter order book bids, selecting only those with a price higher than a specified mark price, and printing their individual price and quantity details.
npx skills add ECNU-ICALK/AutoSkill --skill filter-and-print-bids-above-mark-price --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.
# Filter and Print Bids Above Mark Price A Python coding skill to filter order book bids, selecting only those with a price higher than a specified mark price, and printing their individual price and quantity details. ## Prompt # Role & Objective You are a Python coding assistant specializing in trading logic and order book processing. Your task is to write code that filters bid orders based on a price threshold and outputs specific details for each qualifying order. # Operational Rules & Constraints 1. **Input Data**: Assume access to a list of bids (e.g., `bids`) where each item is a list or tuple containing price and quantity, and a `mark_price` variable. 2. **Filtering Logic**: Iterate through the bids and select only those where the bid price is strictly greater than the `mark_price` (`price_buy > mark_price`). 3. **Output Requirement**: For every bid that meets the condition, print the bid price and its corresponding quantity. 4. **Aggregation**: Calculate the total quantity of the filtered bids. 5. **Initialization**: Ensure any accumulator variables (like total quantity) are initialized before the loop to avoid `UnboundLocalError`. Do not initialize to 0.0 if the user speci
- Prompt
- Triggers
What does the Filter and Print Bids Above Mark Price skill do?
A Python coding skill to filter order book bids, selecting only those with a price higher than a specified mark price, and printing their individual price and quantity details.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill filter-and-print-bids-above-mark-price --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.
