Covey Trading Tools
Project description
Getting Started
-
C++ Build Tools (in case not already on your machine - frequently seen with Windows Users) download here
-
Create a project folder
mkdir covey
-
Using the terminal of your choice, create a virtual python environment within
covey
.python3 -m venv env
-
Activate the virtual environment.
windows
source env/Scripts/Activate
mac
source env/bin/activate
-
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
-
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')
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for covey_sdk-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d96faf4dc3b31cfb547d8cfc9c4bbb0a4643e8332eb917f5520745198b3bd22 |
|
MD5 | 6de5c1c9cb389977446d0ff53404be6a |
|
BLAKE2b-256 | cb103b86733a867a98aaa56707f0bd393e6f9aa7b1291b3a3febcd04f40b1bc6 |