Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias Assign AttributeStore Call NameLoad attr Num FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Num Assign AttributeStore NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Return AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpAnd NameLoad NameLoad body Break orelse Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad BinOpMult NameLoad Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Num TryExcept body For NameStore Call NameLoad body TryExcept body AugAssignAdd NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Pass handlers ExceptHandler type NameLoad name NameStore body Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Print Str Return Assign NameStore Call AttributeLoad Str attr NameLoad Print Call AttributeLoad Str attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Print Str Return Assign NameStore Call AttributeLoad Str attr NameLoad Print Call AttributeLoad Str attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
market_cap.py

View the market capitalization of your coinex account.
Uses bitstamp prices.

OUTPUT:
xxxx BTC
xxxx USD
 N/A urllib.request N/A models N/A json N/A sys decimal * urllib.error URLError HTTPError N/A N/A N/A getcontext prec 8 get_bitstamp_price N/A N/A N/A N/A N/A 
    Get the price from bitstamp.
    Returns in units of USD/BTC
     N/A req N/A N/A N/A urllib request urlopen https://www.bitstamp.net/api/ticker/ N/A ret N/A N/A N/A N/A req read decode N/A ret N/A N/A json loads ret N/A N/A Decimal N/A ret N/A last N/A get_balances N/A N/A N/A N/A N/A 
    Memoized method to get a list of all balances.
    Also, for our purposes the total amount owned should include
    held, so do that.
     N/A N/A N/A hasattr get_balances _balances N/A N/A bals N/A N/A N/A models Wallet get_balances N/A bal bals N/A N/A N/A bal amount N/A bal held N/A N/A bal held N/A Decimal 0 N/A N/A get_balances _balances bals N/A N/A get_balances _balances N/A get_amt_in_btc N/A N/A bal N/A N/A N/A 
    Get a Decimal representing the BTC value of the given Balance.
    Converts using an exchange if needed.
    Bal - a models.Balance object
     N/A N/A N/A N/A bal currency abbreviation BTC N/A N/A N/A bal amount N/A exchange N/A N/A N/A models Exchange get_all N/A N/A to_correct N/A N/A exchange to_currency N/A bal currency N/A from_correct N/A N/A N/A exchange from_currency abbreviation BTC N/A N/A to_correct from_correct N/A N/A N/A N/A N/A ValueError N/A N/A An exchange was not found that can convert {0} to BTC format N/A N/A bal currency abbreviation N/A ordr N/A N/A exchange get_highest_bid N/A N/A Decimal N/A N/A bal amount N/A ordr rate N/A get_amt_in_usd N/A N/A btc N/A N/A N/A 
    Get an amount in USD as a decimal
    btc - a Decimal representing bitcoin amount
    returns a Decimal of usd
     N/A N/A Decimal N/A btc N/A get_bitstamp_price N/A main N/A N/A N/A N/A N/A 
    Get the market cap!
     N/A btc N/A Decimal 0 N/A N/A N/A balance N/A get_balances N/A N/A N/A N/A btc N/A get_amt_in_btc balance N/A N/A N/A ValueError N/A N/A N/A N/A N/A sys stderr write N/A N/A WARNING: Cannot convert {0} to btc
 format N/A N/A balance currency abbreviation N/A N/A N/A N/A HTTPError N/A e N/A N/A N/A N/A Error: status code {0} format N/A e code N/A Is coinex down? N/A N/A btc_str N/A N/A {0:12.8f} format btc N/A N/A N/A {0} BTC format btc_str N/A N/A N/A usd N/A get_amt_in_usd btc N/A N/A N/A HTTPError N/A e N/A N/A N/A N/A Error: status code {0} format N/A e code N/A Is bitstramp down? N/A N/A usd_str N/A N/A {0:12.8f} format usd N/A N/A N/A {0} USD format usd_str N/A N/A N/A __name__ __main__ N/A N/A N/A main