Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Futures Position Risk backward compatibility #659

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Conversation

lyro41
Copy link
Contributor

@lyro41 lyro41 commented Jan 23, 2025

In my opinion, we shouldn't make breaking changes and replace v2 endpoints with v3 ones in terms of backward compatibility.

This repository has 1.6k stars and almost 700 forks, and suddenly changing "Position Risk Service" from v2 behavior to v3 shouldn't be allowed, as you make breaking changes out of the blue in lots of other repositories.

Especially, given that package is v2 library, if you add v3 endpoints in replacement of v2 ones (which are not deprecated), it makes usage of the package kind of confusing as well.

Another point is that there are several v2 endpoints that have v3 versions (e.g. Position Risk, Account, Balance), which were not updated yet. In the future, I would suggest to introduce them like "AccountServiceV3", not "AccountService".

@adshao
Copy link
Collaborator

adshao commented Jan 27, 2025

Hi @lyro41 , thank you for your valuable suggestion! I completely agree with you; we should keep v2 unchanged and add the v3 structs.

@adshao
Copy link
Collaborator

adshao commented Jan 27, 2025

cc @xyq-c-cpp

@adshao adshao merged commit 6bf2039 into ccxt:master Jan 27, 2025
2 checks passed
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