QuantConnect / QuantConnect/Lean.Brokerages.ByBit

Auto Update Symbol Properties

Open
#34 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
7
Forks
15
Avg merge
3h 8m
Merged PRs (30d)
1

Description

We fetch the symbol properties from LEAN (symbol_properties_database.json) which can be out of date for some reason, resulting in errors such as

New Order Event: Time: 05/22/2025 00:00:00 OrderID: 3 EventID: 1 Symbol: BNBUSDT Status: Invalid Quantity: 1.05801 Message: Bybit Order Event: ByBitApiClient request failed: [200] OK, Content: {"retCode":170148,"retMsg":"Market order amount decimal too long","result":{},"retExtInfo":{},"time":1747872000379}, ErrorCode: 170148

The SPDB has a minimum price variation of 0.00001, allowing 1.05801, but the actual variation is 0.0001, so the quantity should be 1.0580.

We should pull this information daily and update the SPDB to avoid these errors.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating symbol_properties_database.json and the existing Bybit integration entry point. Trace how LEAN symbol properties are loaded and determine where a daily refresh would fit; done means current Bybit precision is reflected and the reported invalid-quantity case is prevented.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.