(from WH scripts collection)
- This Powershell script continuously downloads all Binance/Bybit income history from multiple accounts into a sqLite db.
- It can be used in tandem with Darksheer's Crypto-PNL-Tracker or on its own.
- Specify your settings in the
accountData.json
file- number: an arbitrary number you want to give to your account (1, 2, 3, etc)
- exchange: binance or bybit
- name: an arbitrary number you want to give to your account (myCoolAccount1)
- key: your account API key. Best practice is to create a separate Read-Only key for this.
- secret: your account API secret
- symbol: used for bybit and Binance COIN-M (BTC, ETH, EOS, etc) *
- start: the day your account was opened
- enabled: true/false
- Optional: If using Darksheer's Crypto-PNL-Tracker, place the files in the root of the tracker.
- Execute the
accountData.ps1
file from within a Powershell console or by double-clicking on it. - Leave it running and it will collect new data every 10 minutes. When each cycle is complete, you will see the green
Import Complete
message. - Profit!
- Submit any issues or enhancement ideas on the Issues page.
* for Binance COIN-M or Bybit, create a separate account entry in the settings file per each asset and make sure to specify the asset in the Symbol
field.
- USDT (TRC20): TNuwZebdZmoDxrJRxUbyqzG48H4KRDR7wB
- BTC: 1PV97ppRdWeXw4TBXddAMNmwnknU1m37t5
- USDT/ETH (ERC20): 0x56b2239c6bde5dc1d155b98867e839ac502f01ad