Skip to content

Bybit USDC perp BTCPERP is asked for as an inverse market #732

Description

@kirillDevPro

What is wrong

bybit_category in crates/moon-core/src/market/trade_replay/venue_caps.rs classifies a Bybit futures market as linear only when the parsed quote is USDT or USDC. Every other quote, including an empty one, becomes inverse.

crates/moon-core/src/symbol/parse.rs documents Bybit USDC perpetuals as BTCPERP. That name has no quote suffix, so resolve_quote_on returns an empty quote and bybit_category answers inverse.

Bybit serves BTCPERP on category=linear. An inverse request is rejected with retCode 10001, and the trade window then reports that the market does not exist.

What this is not

BTCUSD (coin-margined) staying inverse, and BTCUSDT / BTCUSDC staying linear, match the comment on bybit_category. This report is only the BTCPERP spelling.

No production change is attached. A test that asserted BTCPERP -> inverse would freeze the wrong category.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions