/DXTrade-Python-Demo

A demo made for dxtrade that can be used with python applications to open, close, and manage positions with your dxtrade account. It works with all prop firms or companies that use dxtrade

Primary LanguagePython

Dxtrade Python Demo

A working demo using dxtrade api, I made this short demo to provide instructions and help people get started re-making my DXTrade api I made in golang, in python. If you need help expanding this or any questions make an issue in the issues tab.

Demo in action

Features

  • Buy: Execute buy orders
  • Sell: Execute sell orders
  • Close: Close specific positions
  • Close All: Close all open positions
  • Get positions: Retrieve information about current positions
  • Login information: Authenticate and access user login details
  • Limit orders: Create pending orders with TP/SL

To-Do List

  • More Currency Pairs: Currently, only us30 is supported. Expand to include more currency pairs.
  • More Methods: As of now, only the features above exist, it is important to implement more in the future like editing existing orders, setting tp/sl, etc
  • Quicker Execution: Implement faster execution using Go routines (low priority)

Contribution

If this project has been helpful, please consider giving it a star. Contributions are welcome through pull requests.

Feel free to contribute by:

  • Adding new features
  • Improving existing functionality
  • Fixing bugs

How to Contribute

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/YourFeature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/YourFeature)
  5. Open a pull request

Your contributions are greatly appreciated!


Note: Please make sure to test your changes thoroughly before submitting a pull request.