Hummingbot 做市机器人
Hummingbot 做市机器人:使用Hummingbot框架执行加密货币做市和套利策略,支持资金费率套利、流动性提供、价格监控等自动化交易场景。 含 13 条反模式约束。
晶体简介
Constraints
Evidence Quality
Medium confidence — review before critical use
55 条不可违反的约束
WHENWhen implementing position tracking for perpetual derivatives
ACTIONuse trading_pair only as the position key for ONEWAY mode and trading_pair+side for HEDGE mode
CONSEQUENCEPosition collision occurs when different position sides overwrite each other, causing incorrect position tracking and potential financial loss when orders are matched against wrong positions
WHENWhen tracking unrealized PnL in position objects
ACTIONuse Decimal type for each monetary calculations including unrealized_pnl and entry_price
CONSEQUENCEFloating-point precision errors cause incorrect PnL calculations, leading to wrong profit/loss reporting and potentially oversized orders that exceed available margin
WHENWhen validating order candidates against available balance
ACTIONcheck collateral requirements including order collateral, percent fees, and fixed fees before order execution
CONSEQUENCEOrders exceed available margin, causing immediate liquidation or forced position closure at unfavorable prices with partial loss of collateral
常见问题
讨论 (0)
暂无讨论,成为第一个发言的人吧!
更新历史
v0.1.0: 首次发布到 Doramagic.ai。基于 tangweigang-jpg/doramagic-skills 的自动化 batch-v1 元数据 + 自动生成 FAQ。