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 in your file system folder_name
-
Using the terminal of your choice, create a virtual python environment within folder_name.
python3 -m venv env
[^1] -
Activate the virtual environment[^2].
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
-
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.
-
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.
- Click
-
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.
- 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
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 Distribution
Built Distribution
Hashes for covey_sdk-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 449316d3d831d7dfbf378ab905af11319f87c270bdb7b40250b0f952beaabe88 |
|
MD5 | 4a702dd59325d57a22e89776e66f152e |
|
BLAKE2b-256 | be14b9419cb4902f3a69dfe9fec8eb4aa36d1c3a2a2510ea2f46f0131d4b3e42 |