feat: use bitmarts v3 ticker endpoint #270
Merged
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.
Description
We have seen a lot of rate limits on the V1 ticker endpoint of Bitmart. In their docs they say its supposed to be deprecated since 06/2024 and replaced by the V3 endpoint:
![image](https://private-user-images.githubusercontent.com/80156619/368538458-19ba661c-b926-4ce1-a6b9-32df4f7369a0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4OTEwNDgsIm5iZiI6MTczOTg5MDc0OCwicGF0aCI6Ii84MDE1NjYxOS8zNjg1Mzg0NTgtMTliYTY2MWMtYjkyNi00Y2UxLWE2YjktMzJkZjRmNzM2OWEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDE0NTkwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA2OTY2ZGNhYTM1NjBjODM1NjQ3NzhlMjc4YjNkNzUxZjlkNzYyMDBiYmUzNWEzNjU2OGE5NWZlODYxNWEwNjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TeGieuO0pbYrjR37qwWpPUdEzEd-hwmewxK0jPQDsc0)
https://developer-pro.bitmart.com/en/spot/#change-log
This Pr updates the endpoint to use their V3 instead of the V1.
Tested