Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def start_trading(orders):
- counter = 0
- for order in orders:
- print counter, 'Starting:', order['trade_type'], order['amount']
- counter += 1
- print 'Done'
- orders = [{'amount': 0.01552072,
- 'pair': 'btc_usd',
- 'rate': 644.622,
- 'trade_type': 'buy'},
- {'amount': 0.58821952,
- 'pair': 'ltc_btc',
- 'rate': 0.02633,
- 'trade_type': 'buy'},
- {'amount': 0.58674971,
- 'pair': 'ltc_usd',
- 'rate': 17.052429,
- 'trade_type': 'sell'}]
- start_trading(orders)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement