Repository navigation
Hotfix/market type issues - #28
Merged
Merged
Conversation
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
approved these changes
Nov 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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