BitMEX/sample-market-maker

XBT balance keeps showing 0 even tho I have dry run set to False

righteyeofra opened this issue · 3 comments

When I run the Market Maker is gives me the output below over and over. Not sure why my balance is 0 when on Bitmex it says I have .15XTB.

2018-09-13 14:10:46,691 - INFO - market_maker - XBTUSD Ticker: Buy: 6466.0, Sell: 6466.5
2018-09-13 14:10:46,691 - INFO - market_maker - Start Positions: Buy: 6434.2, Sell: 6498.3, Mid: 6466.0
2018-09-13 14:10:46,695 - INFO - market_maker - Current XBT Balance: 0.000000
2018-09-13 14:10:46,695 - INFO - market_maker - Current Contract Position: 0
2018-09-13 14:10:46,695 - INFO - market_maker - Contracts Traded This Run: 0
2018-09-13 14:10:46,696 - INFO - market_maker - Total Contract Delta: 0.0000 XBT
2018-09-13 14:10:46,696 - INFO - market_maker - Creating 12 orders:
2018-09-13 14:10:46,696 - INFO - market_maker - Sell 100 @ 6498.5
2018-09-13 14:10:46,697 - INFO - market_maker - Sell 200 @ 6531.0
2018-09-13 14:10:46,697 - INFO - market_maker - Sell 300 @ 6563.5
2018-09-13 14:10:46,697 - INFO - market_maker - Sell 400 @ 6596.5
2018-09-13 14:10:46,697 - INFO - market_maker - Sell 500 @ 6629.5
2018-09-13 14:10:46,698 - INFO - market_maker - Sell 600 @ 6662.5
2018-09-13 14:10:46,698 - INFO - market_maker - Buy 100 @ 6434.0
2018-09-13 14:10:46,698 - INFO - market_maker - Buy 200 @ 6402.0
2018-09-13 14:10:46,699 - INFO - market_maker - Buy 300 @ 6370.5
2018-09-13 14:10:46,699 - INFO - market_maker - Buy 400 @ 6338.5
2018-09-13 14:10:46,699 - INFO - market_maker - Buy 500 @ 6307.0
2018-09-13 14:10:46,700 - INFO - market_maker - Buy 600 @ 6275.5

You can have different balances on testnet and the live exchange. The application defaults to testnet:

BASE_URL = "https://testnet.bitmex.com/api/v1/"

I'm having the same issue.
I'm on the testnet, and have successfully authorized with my testnet key / secret
When I run the bot - my balance is showing as 0 even though on my testnet account I have a non-zero balance of test bitcoin.