Skip to content

Commit

Permalink
[API-Client] Add Base,Quote Symbols to market dict
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Jan 10, 2016
1 parent 4b645c1 commit b854785
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions grapheneapi/grapheneclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ class GrapheneClient() :
witness_password = None
prefix = None

#: Instance of GrapheneAPI
#: RPC connection to the cli-wallet
rpc = None

#: Instance of GrapeheneWebsocket
#: Websocket connection to the witness/full node
ws = None

def __init__(self, config):
Expand Down Expand Up @@ -382,11 +382,15 @@ def __init__(self, config):
self.markets.update({
market : {"quote" : quote["id"],
"base" : base["id"],
"base_symbol" : base["symbol"],
"quote_symbol" : quote["symbol"],
"callback": config.onMarketUpdate}})
else: # No callbacks
self.markets.update({
market : {"quote" : quote["id"],
"base" : base["id"]}})
"base" : base["id"],
"base_symbol" : base["symbol"],
"quote_symbol" : quote["symbol"] }})
else:
log.warn("Market assets could not be found: %s"
% market)
Expand Down

0 comments on commit b854785

Please sign in to comment.