当前位置:首页>行情>港股美股实时 Level-2 行情解析

港股美股实时 Level-2 行情解析

  • 2026-03-04 21:54:13
港股美股实时 Level-2 行情解析

 前言

普通行情(Level-1)只能看到最新价、开盘价、最高价、最低价成交量

但 Level-2 行情能告诉你:

  • 谁在买,谁在卖? —— 十档买卖盘

  • 大单还是小单? —— 逐笔成交明细

  • 资金在流入还是流出? —— 主动买卖方向

本文将用 LongPort API 获取并解析这些深度数据。


Level-1 vs Level-2 对比

前置准备

1. 开通 Level-2 权限

  • 长桥 APP → 「我的」→ 「行情商店」→ 订阅「港股 Level-2」或「美股 Nasdaq Basic」

  • 费用:港股约 20-30 HKD/月,美股约 10 USD/月

2. 确认订阅类型

from longport.openapi import QuoteContext, SubType# Level-2 订阅类型SubType.Depth        # 十档买卖盘SubType.Broker       # 经纪商席位SubType.Trade        # 逐笔成交

第一部分:十档买卖盘(Order Book)

关键指标:

  • 买一卖一价差(Spread):流动性指标,越小越好

  • 买卖盘深度:大单堆积位置,支撑/阻力位

from longport.openapi import Config, QuoteContext, SubType, PushDepthfrom rich.console import Consolefrom rich.table import Tablefrom rich.live import Livefrom decimal import Decimalimport timeconsole = Console()class DepthAnalyzer:    """买卖盘分析器"""    def __init__(self):        self.config = Config(            app_key="你的_app_key",            app_secret="你的_app_secret",            access_token="你的_access_token"        )        self.ctx = QuoteContext(self.config)        self.depth_data = {}    def on_depth(self, symbol: str, event: PushDepth):        """深度数据回调"""        self.depth_data[symbol] = {            "asks": event.asks,  # 卖盘 [(价格, 数量), ...]            "bids": event.bids,  # 买盘 [(价格, 数量), ...]            "timestamp": event.timestamp        }    def analyze_depth(self, symbol: str):        """分析买卖盘结构"""        if symbol not in self.depth_data:            return None        data = self.depth_data[symbol]        asks = data["asks"]  # 卖盘,价格从低到高        bids = data["bids"]  # 买盘,价格从高到低        # 计算关键指标        best_ask = asks[0if asks else (Decimal("0"), 0)  # 卖一        best_bid = bids[0if bids else (Decimal("0"), 0)  # 买一        spread = best_ask[0] - best_bid[0]  # 价差        spread_pct = (spread / best_bid[0] * 100if best_bid[0] > 0 else 0        # 买卖盘总量        total_ask_vol = sum(qty for _, qty in asks)        total_bid_vol = sum(qty for _, qty in bids)        # 买卖比        bid_ask_ratio = total_bid_vol / total_ask_vol if total_ask_vol > 0 else 0        return {            "spread": spread,            "spread_pct": spread_pct,            "bid_ask_ratio": bid_ask_ratio,            "best_ask": best_ask,            "best_bid": best_bid,            "total_ask_vol": total_ask_vol,            "total_bid_vol": total_bid_vol        }    def display_depth(self, symbol: str):        """可视化展示买卖盘"""        if symbol not in self.depth_data:            return Table(title="无数据")        data = self.depth_data[symbol]        analysis = self.analyze_depth(symbol)        table = Table(            title=f"[bold cyan]{symbol} 十档买卖盘[/bold cyan]",            box=box.ROUNDED        )        table.add_column("档位", justify="center", width=8)        table.add_column("买价", justify="right", style="green", width=12)        table.add_column("买量", justify="right", style="green", width=10)        table.add_column("卖价", justify="right", style="red", width=12)        table.add_column("卖量", justify="right", style="red", width=10)        asks = list(reversed(data["asks"]))  # 卖盘从高到低显示        for i in range(10):            row = [f"Lv{i+1}"]            # 买盘            if i < len(data["bids"]):                price, vol = data["bids"][i]                row.extend([f"{price:.3f}"f"{vol:,}"])            else:                row.extend(["-""-"])            # 卖盘            if i < len(asks):                price, vol = asks[i]                row.extend([f"{price:.3f}"f"{vol:,}"])            else:                row.extend(["-""-"])            table.add_row(*row)        # 添加分析摘要        if analysis:            summary = (                f"价差: {analysis['spread']:.3f} ({analysis['spread_pct']:.3f}%) | "                f"买卖比: {analysis['bid_ask_ratio']:.2f} | "                f"买盘总量: {analysis['total_bid_vol']:,} | "                f"卖盘总量: {analysis['total_ask_vol']:,}"            )            table.title = f"[bold cyan]{symbol} 十档买卖盘[/bold cyan]\n[dim]{summary}[/dim]"        return table    def start(self, symbols):        """启动监控"""        self.ctx.set_on_depth(self.on_depth)        self.ctx.subscribe(symbols, [SubType.Depth])        console.print(f"[bold green]🔍 启动 Level-2 买卖盘监控: {', '.join(symbols)}[/bold green]")        with Live(refresh_per_second=2as live:            while True:                for symbol in symbols:                    table = self.display_depth(symbol)                    live.update(table)                time.sleep(0.5)# 使用if __name__ == "__main__":    analyzer = DepthAnalyzer()    analyzer.start(["700.HK""TSLA.US"])

第二部分:逐笔成交(Time & Sales)

什么是逐笔成交?

Level-1 只告诉你这一分钟成交了1000股,Level-2 告诉你:

  • 10:00:01 成交 100股,价格 423.50,主动买入

  • 10:00:02 成交 200股,价格 423.48,主动卖出

  • 10:00:03 成交 50股,价格 423.52,主动买入

关键判断:主动买入 vs 主动卖出

  • 成交价 = 卖一价 → 主动买入(资金流入)

  • 成交价 = 买一价 → 主动卖出(资金流出)

from longport.openapi import PushTradefrom collections import dequefrom datetime import datetimeclass TradeAnalyzer:    """逐笔成交分析器"""    def __init__(self, max_history=1000):        self.trades = deque(maxlen=max_history)  # 固定长度,防止内存溢出        self.buy_volume = 0        self.sell_volume = 0    def on_trade(self, symbol: str, event: PushTrade):        """处理逐笔成交"""        # 判断主动方向(简化版:与上一笔价格比较)        trade = {            "symbol": symbol,            "price": event.price,            "volume": event.volume,            "timestamp": event.timestamp,            "side"self._judge_side(event)        }        self.trades.append(trade)        # 统计资金流向        if trade["side"] == "BUY":            self.buy_volume += event.volume        else:            self.sell_volume += event.volume    def _judge_side(self, event: PushTrade) -> str:        """        判断主动买卖方向        实际应该用当时的买卖盘数据对比,这里简化处理        """        # 如果有深度数据,对比成交价与买卖一价        # 这里简化为随机(实际项目中需要接入深度数据)        return "BUY" if event.price >= event.prev_price else "SELL"    def get_flow_analysis(self, window_seconds=60):        """分析最近 N 秒资金流向"""        cutoff = datetime.now().timestamp() - window_seconds        recent_trades = [t for t in self.trades if t["timestamp"].timestamp() > cutoff]        buy_vol = sum(t["volume"for t in recent_trades if t["side"] == "BUY")        sell_vol = sum(t["volume"for t in recent_trades if t["side"] == "SELL")        net_flow = buy_vol - sell_vol        flow_ratio = buy_vol / (buy_vol + sell_vol) if (buy_vol + sell_vol) > 0 else 0.5        return {            "buy_volume": buy_vol,            "sell_volume": sell_vol,            "net_flow": net_flow,            "flow_ratio": flow_ratio,            "signal""流入" if net_flow > 0 else "流出"        }    def detect_big_orders(self, threshold=10000):        """检测大单"""        big_orders = [t for t in self.trades if t["volume"] >= threshold]        return big_orders    def display_trades(self, n=20):        """展示最近 N 笔成交"""        table = Table(title="逐笔成交明细")        table.add_column("时间", width=12)        table.add_column("价格", justify="right", width=10)        table.add_column("数量", justify="right", width=10)        table.add_column("方向", justify="center", width=8)        table.add_column("标记", width=10)        for trade in list(self.trades)[-n:]:            color = "green" if trade["side"] == "BUY" else "red"            marker = "🟢" if trade["side"] == "BUY" else "🔴"            big_flag = " [bold]大单[/bold]" if trade["volume"] >= 10000 else ""            table.add_row(                trade["timestamp"].strftime("%H:%M:%S"),                f"{trade['price']:.2f}",                f"{trade['volume']:,}",                f"[{color}]{trade['side']}[/{color}]",                f"{marker}{big_flag}"            )        return table

第三部分:完整整合 - Level-2 行情终端

#!/usr/bin/env python3"""LongPort Level-2 行情终端功能:实时展示十档买卖盘 + 逐笔成交 + 资金流向"""from longport.openapi import (    Config, QuoteContext, TradeContext,    SubType, PushQuote, PushDepth, PushTrade)from rich.console import Consolefrom rich.layout import Layoutfrom rich.panel import Panelfrom rich.table import Tablefrom rich.live import Livefrom decimal import Decimalfrom datetime import datetimeimport timeconsole = Console()class Level2Terminal:    """Level-2 行情终端"""    def __init__(self):        self.config = Config(            app_key="你的_app_key",            app_secret="你的_app_secret",            access_token="你的_access_token"        )        self.quote_ctx = QuoteContext(self.config)        # 数据存储        self.quotes = {}      # 最新报价        self.depths = {}      # 买卖盘        self.trades = {}      # 逐笔成交        # 统计        self.trade_stats = {}    def on_quote(self, symbol: str, event: PushQuote):        """报价回调"""        self.quotes[symbol] = event    def on_depth(self, symbol: str, event: PushDepth):        """深度回调"""        self.depths[symbol] = event    def on_trade(self, symbol: str, event: PushTrade):        """成交回调"""        if symbol not in self.trades:            self.trades[symbol] = []            self.trade_stats[symbol] = {"buy_vol"0"sell_vol"0}        self.trades[symbol].append({            "price": event.price,            "volume": event.volume,            "time": datetime.now()        })        # 简化判断主动方向(实际应用需结合深度数据)        # 这里假设价格>=昨收为主动买入        if event.price >= (self.quotes.get(symbol, event)).prev_close:            self.trade_stats[symbol]["buy_vol"] += event.volume        else:            self.trade_stats[symbol]["sell_vol"] += event.volume    def create_layout(self, symbol: str) -> Layout:        """创建界面布局"""        layout = Layout()        # 分割为上下两部分        layout.split_column(            Layout(name="upper", ratio=2),            Layout(name="lower", ratio=1)        )        # 上半部分左右分割:报价 + 买卖盘        layout["upper"].split_row(            Layout(name="quote_info"),            Layout(name="depth")        )        # 下半部分:逐笔成交        layout["lower"].update(self._make_trade_panel(symbol))        # 填充数据        layout["quote_info"].update(self._make_quote_panel(symbol))        layout["depth"].update(self._make_depth_panel(symbol))        return layout    def _make_quote_panel(self, symbol: str) -> Panel:        """报价信息面板"""        if symbol not in self.quotes:            return Panel("等待数据...", title="报价")        q = self.quotes[symbol]        change = q.last_done - q.prev_close        change_pct = (change / q.prev_close) * 100        color = "green" if change >= 0 else "red"        content = f"""[bold {color}]{symbol}[/bold {color}]最新价: {q.last_done:.3f}涨跌额: {change:+.3f}涨跌幅: {change_pct:+.2f}%开盘:   {q.open:.3f}最高:   {q.high:.3f}最低:   {q.low:.3f}成交量: {q.volume:,}时间:   {q.timestamp}        """        return Panel(content, title="[bold]实时报价[/bold]", border_style=color)    def _make_depth_panel(self, symbol: str) -> Panel:        """买卖盘面板"""        if symbol not in self.depths:            return Panel("等待深度数据...", title="买卖盘")        d = self.depths[symbol]        table = Table(show_header=False, box=None)        table.add_column("买量", justify="right", style="green")        table.add_column("买价", justify="right", style="green")        table.add_column("卖价", justify="right", style="red")        table.add_column("卖量", justify="right", style="red")        # 合并显示5档        for i in range(5):            bid_price = bid_vol = "-"            ask_price = ask_vol = "-"            if i < len(d.bids):                bid_price, bid_vol = d.bids[i]                bid_price = f"{bid_price:.3f}"                bid_vol = f"{bid_vol:,}"            if i < len(d.asks):                ask_price, ask_vol = d.asks[i]                ask_price = f"{ask_price:.3f}"                ask_vol = f"{ask_vol:,}"            table.add_row(bid_vol, bid_price, ask_price, ask_vol)        return Panel(table, title="[bold]五档买卖盘[/bold]")    def _make_trade_panel(self, symbol: str) -> Panel:        """逐笔成交面板"""        if symbol not in self.trades or not self.trades[symbol]:            return Panel("等待成交数据...", title="逐笔成交")        stats = self.trade_stats.get(symbol, {"buy_vol"0"sell_vol"0})        total_vol = stats["buy_vol"] + stats["sell_vol"]        buy_ratio = stats["buy_vol"] / total_vol if total_vol > 0 else 0.5        table = Table(title=f"主动买占比: {buy_ratio*100:.1f}%")        table.add_column("时间", width=10)        table.add_column("价格", justify="right", width=10)        table.add_column("数量", justify="right", width=10)        # 显示最近5笔        for t in self.trades[symbol][-5:]:            color = "green" if t["price"] >= self.quotes.get(symbol, t).prev_close else "red"            table.add_row(                t["time"].strftime("%H:%M:%S"),                f"[{color}]{t['price']:.2f}[/{color}]",                f"{t['volume']:,}"            )        return Panel(table, title="[bold]逐笔成交[/bold]")    def start(self, symbols):        """启动终端"""        # 设置回调        self.quote_ctx.set_on_quote(self.on_quote)        self.quote_ctx.set_on_depth(self.on_depth)        self.quote_ctx.set_on_trade(self.on_trade)        # 订阅数据        for symbol in symbols:            self.quote_ctx.subscribe([symbol], [SubType.Quote, SubType.Depth, SubType.Trade])        console.print(f"[bold green]🚀 Level-2 终端启动 | 监控: {', '.join(symbols)}[/bold green]")        # 实时刷新        with Live(refresh_per_second=2, screen=Trueas live:            while True:                # 显示第一个标的(可扩展为多标的切换)                layout = self.create_layout(symbols[0])                live.update(layout)                time.sleep(0.5)if __name__ == "__main__":    terminal = Level2Terminal()    terminal.start(["700.HK""TSLA.US"])

第四部分:Level-2 数据的应用策略

1. 盘口异动策略

def detect_abnormal_depth(depth_data):    """检测盘口异常"""    asks = depth_data["asks"]    bids = depth_data["bids"]    # 检测大单压盘/托单    big_threshold = 50000    ask_big = [(p, v) for p, v in asks if v > big_threshold]    bid_big = [(p, v) for p, v in bids if v > big_threshold]    if len(ask_big) >= 2:        return "WARNING"f"卖盘堆积大单: {ask_big}"    if len(bid_big) >= 2:        return "OPPORTUNITY"f"买盘托单: {bid_big}"    return "NORMAL"""

2. 资金流向策略

def money_flow_signal(trade_stats, window=5):    """基于资金流向的交易信号"""    buy_vol = trade_stats["buy_vol"]    sell_vol = trade_stats["sell_vol"]    if buy_vol + sell_vol == 0:        return "HOLD"    ratio = buy_vol / (buy_vol + sell_vol)    if ratio > 0.7:        return "STRONG_BUY"  # 资金大幅流入    elif ratio > 0.6:        return "BUY"    elif ratio < 0.3:        return "STRONG_SELL"    elif ratio < 0.4:        return "SELL"    return "HOLD"

文章信息

  • 难度:⭐⭐⭐⭐ 高级

  • 需要权限:Level-2 行情订阅

  • 适用市场:港股、美股

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-05 11:10:24 HTTP/2.0 GET : https://mffb.com.cn/a/489517.html
  2. 运行时间 : 0.137404s [ 吞吐率:7.28req/s ] 内存消耗:4,724.12kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=04c9bb3ab659b7b07e0d1376a2891fd0
  1. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/runtime/temp/49e0cd3e0528281c5c5fae705243dc37.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000432s ] mysql:host=127.0.0.1;port=3306;dbname=no_mfffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000553s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000333s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000222s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000438s ]
  6. SELECT * FROM `set` [ RunTime:0.000613s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000541s ]
  8. SELECT * FROM `article` WHERE `id` = 489517 LIMIT 1 [ RunTime:0.000737s ]
  9. UPDATE `article` SET `lasttime` = 1772680224 WHERE `id` = 489517 [ RunTime:0.009348s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 65 LIMIT 1 [ RunTime:0.000280s ]
  11. SELECT * FROM `article` WHERE `id` < 489517 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.002542s ]
  12. SELECT * FROM `article` WHERE `id` > 489517 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.003882s ]
  13. SELECT * FROM `article` WHERE `id` < 489517 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.019802s ]
  14. SELECT * FROM `article` WHERE `id` < 489517 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.009581s ]
  15. SELECT * FROM `article` WHERE `id` < 489517 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.020790s ]
0.139023s