项目作者: 0x78f1935

项目描述 :
The core of PyNance Webinterface
高级语言: Python
项目地址: git://github.com/0x78f1935/PyNance.git
创建时间: 2021-02-15T19:08:24Z
项目社区:https://github.com/0x78f1935/PyNance

开源协议:Mozilla Public License 2.0

下载


PyNance - Core

PyNance Status Branch Reference
Core Build Status Master Visit
Core Build Status Development Visit
Webinterface Build Status Master Visit
Webinterface Build Status Development Visit

binance

Binance Account

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.

Binance API Credentials

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.

UNITTESTS

You can run unittests by running

  1. 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

  1. USE_IN_UNITTEST=1
  2. API_KEY=<Your api key>
  3. 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.

BUILDING

You need to build a whl package.

  1. python -m build

COPY TO SERVER

  1. scp -r D:\Private\PyNance server@192.168.178.213:/home/server/PyNance

Debian10

  1. sudo apt-get install python3-dev
  2. sudo apt-get install python3-pip
  3. python3 -m pip install virtualenv
  4. python3 -m virtualenv venv
  5. source venv/bin/activate
  6. pip install -r requirements.txt