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

    mkdir covey

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

    python3 -m venv env

  4. Activate the virtual environment.

    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. 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,ETHUSDT:0.15,AMZN:0.0')

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

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!

FAQs


  • target_percent is the new percent you want the size to be. If you had a prior target_percent of 0.01 (1%), then you added a new target_percent of 0.03 (3%) that would buy you an additional (0.02) 2%. So the end position is 0.03 (3%)
  • To close a position you need to run target_percent = 0.0

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

covey_sdk-0.1.16-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file covey_sdk-0.1.16-py3-none-any.whl.

File metadata

  • Download URL: covey_sdk-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for covey_sdk-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 acdbdaf45c2f6aea09a45166d589b22c1cddff62c22e35e4d5b751963c017349
MD5 46b1329b8328dcb1ab5f40f345aa1768
BLAKE2b-256 1163c86316b7a82e7aa1d33353e0e01756f6d4054573a2ac769a935e822efe40

See more details on using hashes here.

Supported by

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