|
|
|
@ -19,15 +19,19 @@
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.state = {
|
|
|
|
|
store_market_data: false
|
|
|
|
|
looping: false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
return(
|
|
|
|
|
<div>
|
|
|
|
|
<h1>sup shitbird</h1>
|
|
|
|
|
<p>literally nobody likes you</p>
|
|
|
|
|
<h1>we trade a lil {{ trade_currency }}</h1>
|
|
|
|
|
{
|
|
|
|
|
this.state.looping && <p>market making is started</p>
|
|
|
|
|
||
|
|
|
|
|
<p>market making is paused</p>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
@ -46,4 +50,11 @@
|
|
|
|
|
// setInterval(function() {
|
|
|
|
|
// fetch('{{ url_for("tasks.store_ticker_data") }}');
|
|
|
|
|
// }, 10000)
|
|
|
|
|
|
|
|
|
|
// store market data - 10s
|
|
|
|
|
// update balances - 30s
|
|
|
|
|
// update bitcoin price - 120s
|
|
|
|
|
// update order status - 30s
|
|
|
|
|
// get trade history - 60s
|
|
|
|
|
|
|
|
|
|
</script>
|