## Not run:
# # get ticker from market
# market.api.process(market = 'kraken', currency_pair = c('BTC', 'EUR'), action='ticker')
# # get ticker from all markets and combine
# ticker_all <- rbindlist(list(
# market.api.process(market = 'bitstamp', currency_pair = c('BTC', 'USD'), action='ticker')
# ,market.api.process(market = 'btce', currency_pair = c('LTC', 'USD'), action='ticker')
# ,{Sys.sleep(10);
# market.api.process(market = 'btce', currency_pair = c('LTC', 'BTC'), action='ticker')}
# ,{Sys.sleep(10);
# market.api.process(market = 'btce', currency_pair = c('NMC', 'BTC'), action='ticker')}
# ,market.api.process(market = 'kraken', currency_pair = c('BTC','EUR'), action='ticker')
# ,{Sys.sleep(10);
# market.api.process(market = 'kraken', currency_pair = c('LTC','EUR'), action='ticker')}
# ,{Sys.sleep(10);
# market.api.process(market = 'kraken', currency_pair = c('BTC','LTC'), action='ticker')}
# ))
# print(ticker_all)
#
# # get wallet from market
# market.api.process(market = 'kraken', currency_pair = c('BTC', 'EUR'), action = 'wallet',
# key = '', secret = '')
# # get wallet from all markets and combine
# wallet_all <- rbindlist(list(
# market.api.process(market = 'bitstamp', currency_pair = c('BTC', 'USD'), action = 'wallet',
# client_id = '', key = '', secret = ''),
# market.api.process(market = 'btce', currency_pair = c('LTC', 'USD'), action = 'wallet',
# method = '', key = '', secret = ''),
# market.api.process(market = 'kraken', currency_pair = c('BTC', 'EUR'), action = 'wallet',
# key = '', secret = '')
# ))
# print(wallet_all)
#
# # get order book from market
# market.api.process(market = 'kraken', currency_pair = c('BTC', 'EUR'), action = 'order_book')
#
# # get open orders from market
# market.api.process(market = 'kraken', currency_pair = c('BTC', 'EUR'), action = 'open_orders',
# key = '', secret = '')
#
# # place limit order
# market.api.process(market = 'kraken', currency_pair = c('BTC', 'EUR'), action = 'place_limit_order',
# req = list(type = 'sell', amount = 1, price = 8000), # sell 1 btc for 8000 eur
# key = '', secret = '')
#
# # cancel order
# market.api.process(market = 'kraken', currency_pair = c('BTC', 'EUR'), action = 'cancel_order,
# req = list(oid = 'oid_from_open_orders'),
# key = '', secret = '')
# # get trades
# market.api.process(market = 'kraken', currency_pair = c('BTC', 'EUR'), action = 'trades')
# ## End(Not run)
Run the code above in your browser using DataLab