MCPcopy
hub / github.com/owocki/pytrader / get_fee_amount

Function get_fee_amount

history/tools.py:131–136  ·  view source on GitHub ↗
(volume=settings.TRADE_VOLUME_TRAILING_30_DAYS, mode=settings.TRADE_MODE)

Source from the content-addressed store, hash-verified

129
130
131def get_fee_amount(volume=settings.TRADE_VOLUME_TRAILING_30_DAYS, mode=settings.TRADE_MODE):
132 for meta in settings.FEES['poloniex']:
133 if meta['volume'] == volume:
134 return meta[mode]
135
136 raise ImproperlyConfigured('could not find fee amount for {} / {}'.format(volume, mode))

Callers 4

calculatefeesMethod · 0.90
get_classifierMethod · 0.90
recommend_tradeMethod · 0.90
handleMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected