(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 script 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.
* for Bybit USDT Futures, use "USDT" for symbol.
- USDT (TRC20):
TWhjv6ita4Y1i2xevTjxgB6g92yZLpkTwv
- BTC:
13nsGbe7A7K1SR2KpJHRPH9eArKf823T9o