Skip to content

Hotfix/market type issues - #28

Merged
amirhosseinfaghan merged 8 commits into
masterfrom
hotfix/market-type-issues
Nov 1, 2025
Merged

amirhosseinfaghan merged 8 commits into
masterfrom
hotfix/market-type-issues

Conversation

@mohammadnasher

Copy link
Copy Markdown

Toobit Exchange API Migration (v4.9.16)

🚀 Enhanced Market Data Integration

This release updates the Toobit exchange integration to use the latest API endpoints and improves market data accuracy.
Key Changes:
📊 API Endpoint Migration

  • Migrated from deprecated /quote/v1/ticker/24hr to /api/v1/exchangeInfo endpoint

  • Enhanced market filtering to only include actively trading symbols ( TRADING status)

  • Improved data reliability and consistency with Toobit's current API structure
    🔧 Enhanced Market Parsing

  • Complete reimplementation of market data parsing logic

  • Added comprehensive support for trading filters (price, quantity, notional constraints)

  • Enhanced precision handling with dedicated baseAssetPrecision and quotePrecision fields

  • Added margin trading flag support for better market classification
    📚 Documentation Updates

  • Updated all API documentation references to new domain ( toobit-docs.github.io )

  • Ensures developers have access to current and accurate API documentation

  • Consistent JSDoc references across all exchange functions Technical Details:

  • Files Modified : ts/src/toobit.ts , ts/src/abstract/toobit.ts

  • Backward Compatibility : Maintained - existing market data structure preserved

  • API Reliability : Improved - using official exchangeInfo endpoint instead of deprecated ticker endpoint

  • Filter Support : Added comprehensive parsing for PRICE_FILTER , LOT_SIZE , MIN_NOTIONAL , and MARKET_LOT_SIZE

The exchange has disabled spot trading and enabled OTC trading instead. This change updates the configuration to reflect the current trading options available.
Ensure requests include the Origin header required by the hamtapay.net API
Add support for the /api/v1/exchangeInfo endpoint in the Toobit exchange integration to fetch market data information
- switch to new API endpoint for fetching market data
- implement proper market status filtering
- add support for parsing market filters and precision
- include margin trading flag in market data
Update the API documentation URLs in the toobit exchange class to point to the new documentation domain
refactor(abantether, sarmayex): change market type from spot to otc
fix(hamtapay): add Origin header to API requests
chore: bump version to 4.9.16
@amirhosseinfaghan
amirhosseinfaghan merged commit ad09a56 into master Nov 1, 2025
8 of 11 checks passed
@amirhosseinfaghan
amirhosseinfaghan deleted the hotfix/market-type-issues branch November 1, 2025 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants