Skip to content

Conversation

floor-licker
Copy link

Adds support for Rust to the MEXC SDK by building on the existing Python functionality. The Rust implementation uses the PyO3 library to call the Python SDK directly, so Rust developers can interact with the MEXC API without needing to use Python themselves. This keeps the functionality consistent across both languages while making it more accessible.

The MexcClient struct in Rust is analogous the Python Spot class. These Rust methods internally call their Python equivalents, so the behaviour matches what’s already in place for Python users and doesn't change any functionality under the hood of the existing project.

@jtranquilli
Copy link
Contributor

@MXCDev would you mind reviewing this PR?

The Rust functionality is built directly on top of the existing Python functionality using PyO3 for function mappings so there's no difference in implementation under the hood.

The readme.md is also updated accordingly to show the analogous set up configuration as with the other supported languages. There are also integration tests included and the added files are zipped at dist/rust which matches the predefined structure of the project.

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