Skip to content
Back to skills

Filter And Print Bids Above Mark Price

ASecurity

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.

  • 581 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
ai-agentspython

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill filter-and-print-bids-above-mark-price --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Filter And Print Bids Above Mark Price?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Filter And Print Bids Above Mark Price
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-filter-and-print-bids-above-mark-price/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-filter-and-print-bids-above-mark-price)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "a9798d75-1df0-457c-8121-15328f676819"
name: "Filter and Print Bids Above Mark Price"
description: "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."
version: "0.1.0"
tags:
  - "python"
  - "trading"
  - "order-book"
  - "filtering"
  - "bids"
triggers:
  - "code for bid orders which will count quantity only of bids which price higher than mark_price"
  - "print bids which price is higher than mark_price"
  - "filter bids above mark price"
  - "sum quantity of bids higher than price"
  - "print every bid with price higher than mark price"
---

# 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 specifies otherwise, but generally ensure a valid starting state.
6. **Completeness**: Ensure the loop processes every bid in the list, not just the first one found.

# Anti-Patterns
- Do not limit the output to a single bid or order.
- Do not use a constant quantity for all bids unless explicitly requested; use the actual quantity from the bid data.
- Do not include bids where the price is less than or equal to the mark price.

## Triggers

- code for bid orders which will count quantity only of bids which price higher than mark_price
- print bids which price is higher than mark_price
- filter bids above mark price
- sum quantity of bids higher than price
- print every bid with price higher than mark price

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.