PyNance | Status | Branch | Reference |
---|---|---|---|
Core | Master | Visit | |
Core | Development | Visit | |
Webinterface | Master | Visit | |
Webinterface | Development | Visit |
In order to fetch the latest market information and to be able to place orders you will need a Binance account. You can create an account here. This account also contains your wallets and API credentials. Make sure to enable 2factor authentication.
After you have created your binance account you need to create your API credentials. Once created make sure to save them. The secret is hidden after creation and you need the secret in order to proceed. You can follow the steps on how to create API credentials here.
You can run unittests by running
python -m unittest
Some unittests are only available in production.
If you place a file called .env
into the root of PyNance you can add the following values to run the unittests in production
USE_IN_UNITTEST=1
API_KEY=<Your api key>
API_SECRET=<Your api secret>
Note: Do not add "
(quotes) around your values.
Tests run in production mode will have no impact on the account itself.
You need to build a whl package.
python -m build
scp -r D:\Private\PyNance [email protected]:/home/server/PyNance
sudo apt-get install python3-dev
sudo apt-get install python3-pip
python3 -m pip install virtualenv
python3 -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt