Skip to content

Instantly share code, notes, and snippets.

@ekam230
Created May 8, 2018 10:27
Show Gist options
  • Save ekam230/00a60ad4f06b6453d7506d36617a39d3 to your computer and use it in GitHub Desktop.
Save ekam230/00a60ad4f06b6453d7506d36617a39d3 to your computer and use it in GitHub Desktop.
switch on testnet ccxt bitmex
if 'test' in bitmex.urls:
bitmex.urls['api'] = bitmex.urls['test'] # ←----- switch the base URL to testnet
print (bitmex.fetch_balance())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment