This repository contains the source code for a cryptocurrency exchange simulator, specifically designed to replicate the behavior of Binance. The simulator uses real price data from Binance and allows you to run your trading strategies in a risk-free environment. By hosting an HTTP server, the simulator enables the creation of multiple exchange instances with unique wallets, providing a comprehensive testing platform for your trading algorithms.
- Simulates the Binance exchange with real price data
- Hosts an HTTP server for creating and managing exchange instances
- Supports wallet management and querying
- Customizable order types, including limit and market orders
- Allows for testing multiple trading strategies simultaneously
- Ideal for both live strategy testing and backtesting purposes
- Clone the repository:
git clone https://github.com/DieHard073055/solid-carnival.git
- Install dependencies:
cargo build
- Configure the simulator by editing the
config.toml
file with your preferred settings - Run the simulator:
cargo run
.Not yet working
Once the simulator is up and running, you can interact with its API to create exchange instances, manage wallets, place orders, and retrieve the status of your trading strategies. Your external code can connect to the simulator's API to perform these actions and evaluate the results of your trading algorithms.
We welcome contributions from the community. If you would like to contribute to the development of this project, please follow these steps:
- Fork the repository
- Create a new branch with a descriptive name (e.g.,
feature-add-new-feature
) - Make your changes and commit them with a clear and concise commit message
- Open a pull request with a detailed description of your changes in markdown format
Please ensure that your code follows the existing style and structure of the project. If you have any questions or need assistance, feel free to open an issue or reach out to the maintainers.
This project is licensed under the MIT License. See the LICENSE file for more information.