Code Monkey home page Code Monkey logo

stockdistributor's Introduction

StockDistributor

A cmd Python app for buying stocks on XTB for a specific amount of money

Install

To install you are going to need python and some libraries

  • websocket-client==1.4.1
  • termtables
  • pytz
  • decimal

if you heave pip you can run imports.bat to install them all at once

get python here: https://www.python.org/downloads/

and pip here: https://pypi.org/project/pip/

How to use

Lunch the app.py in your cmd and follow the instructions.

Features

In this app, you can log in to your XTB account via the API and select a certain amount of balance to be distributed between stocks of your choosing and parachuted with minimal amount not spend.

  • you can save several accounts in the accounts.json file, so you don't heave to type out the ID every time (format: [Lp, ID, demo/real, note]).
  • You can import .json files with stocks to sped up your operation (check out exp_Indexes.json).
  • If an exchange is closed, the app can wait until its opening.
  • in the minimumTarnsactions.txt you can specify minimum values of different types of instruments (the API does not provide this value)

Disclaimer

Read the code at your own risk!

This is the first code I have ever written, so it is horrendous, but hey it does the job.

If you can bare it, feel free to contribute!

Credits

Big thanks to Saitama298 on GitHub for making the API.py part of this app, I would not be able to do this without it,

but you still heave to use the version from this repository because I modified the original code.

stockdistributor's People

Contributors

kaktur avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.