UNPKG

bluebot

Version:

A bitcoin trading bot for auto trading at various exchanges

20 lines (17 loc) 381 B
import { get } from '../../../tools/ajax' import store from '../../' import { bus } from '../../../components/global/ws' const init = () => { get('imports', (err, resp) => { store.commit('syncImports', resp); }); } const sync = () => { bus.$on('import_update', data => { store.commit('updateImport', data); }); } export default function() { init(); sync(); }