I haven't run the CLI version yet but I assume this requires the CLI version? Just wondering I tried to get it to work but keep getting connection refused:
Initializing with URL: http://robrigo-market-maker:************@localhost:8000/rpc
Init price: 0.039835
Init price: 25.103530
Traceback (most recent call last):
File "main.py", line 107, in <module>
init_usd_balance = client.get_balance("USD")
File "/Users/rob/Documents/repos/bitshares_toolkit/programs/market_maker/btsx.py", line 57, in get_balance
response = self.request("wallet_account_balance", [self.account_name, asset])
File "/Users/rob/Documents/repos/bitshares_toolkit/programs/market_maker/btsx.py", line 29, in request
response = requests.post(self.url, data=json.dumps(payload), headers=headers)
File "/Library/Python/2.7/site-packages/requests/api.py", line 92, in post
return request('post', url, data=data, **kwargs)
File "/Library/Python/2.7/site-packages/requests/api.py", line 48, in request
return session.request(method=method, url=url, **kwargs)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 451, in request
resp = self.send(prep, **send_kwargs)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 557, in send
r = adapter.send(request, **kwargs)
File "/Library/Python/2.7/site-packages/requests/adapters.py", line 407, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(61, 'Connection refused'))
So I assume I would need to build / run the bitshares_toolikit? If so, is there any danger of building the client when I already have the GUI installed (i.e. will it modify my current data directory?).
Edit: just remember reading somewhere I can pass an argument to make a 2nd data directory. So that should do the trick!
Thanks! I have been meaning to dig into running a delegate but my less interesting full time job comes first.