Skip to main content

Covey Trading Tools

Project description

Getting Started


  1. C++ Build Tools (in case not already on your machine - frequently seen with Windows Users) download here

  2. Create a project folder in your file system folder_name

  3. Using the terminal of your choice, create a virtual python environment within folder_name.

    python3 -m venv env [^1]

  4. Activate the virtual environment[^2].

    windows source env/Scripts/Activate

    mac source env/bin/activate

  5. Once the environment is activated (the terminal should have the environment name pop up in front of the user name as (env)), proceed to install the covey-sdk. pip install covey-sdk

  6. If there are no errors, you are ready to open the project in Visual Studio Code.

    • Open VS Code and go to File > Open Folder (choose the project).
    • Make sure the env/ folder is visible in the project structure.
  7. Although it should be a default, make sure the proper interpreter is selected from the env/ folder

    • Click Ctrl + Shift + P and type in Python : Select Interpreter in the drop down.
    • The proper interpreter will be in the env/scripts folder and will have a star next to it.
  8. Create a new file called test.py or whichever name you would prefer and run the following code

    import covey.covey_trade as ct

    t = ct.Trade(address = <public wallet key>, address_private = <private_wallet_key>, posting_only = True)

    t.post_trades_polygon('FB:0.25')

[^1]: note you can call it env or venv just something conventional to remember, also important to use the command python3 to make sure the proper version is installed in the virtual environment.

[^2]: again note that 'env' is just a name we used to name our virtual environment. You can call it covey_env or something custom if you wish.

  1. Note the post trades string needs to be one string with the format :<target_allocation>,:<target_allocation>,...

If successful, the terminal should write back that your trades have been posted.

Please let us know if you have any questions or run into issues, happy coding!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

covey-sdk-0.0.6.tar.gz (272.8 kB view hashes)

Uploaded Source

Built Distribution

covey_sdk-0.0.6-py3-none-any.whl (282.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page