Simple Python Script, using tradehub-python that creates CSV files in a format the the tax software Koinly understands, from Demex account trades and transfers for any Demex addresses
Python 3.8+ required.
Instructions
1)Install Tradehub-python library "pip install tradehub" (https://github.com/Mai-Te-Pora/tradehub-python)
2)Open ExportDemexTradesAndTransfersToKoinly.py
3)Change # PARAMETERS settings
4)Run the script in a location where you have write permission
5)Verify that the content of the trade and transaction files is correct with Notepad
myMnemonic = 'these are twelve words that used together allow access to your wallet' #Tradehub mnemonic of any wallet (can be empty)
demexAddresses = [ 'swth1primary', # Primary 'swth1secondary' # Secondary ]