Skip to content

NikitaPirate/dhedge-python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

dHedge.org Trading Python SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages