dhedge

dHedge.org Trading Python SDK


License
MIT
Install
pip install dhedge==0.0.1

Documentation

dhedge-python-sdk

Installation

1.install eth-brownie
2. install dhedge:

$ pip install dhedge

or

$ git clone https://github.com/NikitaPirate/dhedge-python-sdk.git
$ cd dhedge-python-sdk
$ python3 setup.py install

Network

$ brownie networks modify <id> host=<your host>

or just add Infura ID to environment

$ export WEB3_INFURA_PROJECT_ID=YourProjectID

Account

Adding account in script:

from brownie import accounts
account = accounts.add(<private key>)

or

account = accounts.from_mnemonic(<mnemonic>)

or add account in brownie: use to explore all options:

$ brownie accounts -help

after adding account:

from brownie import accounts
account = accounts.load(<account_id>)

Usage

$ brownie run script --network <network id>