order_book_depth_signal_generator — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited order_book_depth_signal_generator (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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.
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.
signal_generator(df).df is None or len(df) < 2. If so, return an empty list [].client object and symbol variable to fetch data:depth_data = client.depth(symbol=symbol)mark_price_data = client.mark_price(symbol=symbol)bid_depth and ask_depth from depth data.buy_qty as the sum of all quantities in bid_depth.sell_qty as the sum of all quantities in ask_depth.best_bid_price (price of the highest bid) and best_ask_price (price of the lowest ask) from the depth data.mark_price from the mark price data.signals.buy_qty > sell_qty, set trend to 'bullish'.sell_qty > buy_qty, set trend to 'bearish'.best_bid_price < mark_price, append 'buy' to signals.best_ask_price > mark_price, append 'sell' to signals.'' to signals.signals list.client, symbol, df) unless explicitly requested.buy_qty / sell_qty > 1.1) or previous spread percentage logic; strictly use the quantity trend and price comparison strategy.mark_price < sell_price for sell signals).~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.