Browse Source

Test

etomic
jl777 7 years ago
parent
commit
aa1b61018c
  1. 8
      iguana/exchanges/LP_portfolio.c

8
iguana/exchanges/LP_portfolio.c

@ -298,16 +298,13 @@ void prices_loop(void *ignore)
char *retstr; cJSON *retjson,*bid,*ask; uint64_t bidsatoshis,asksatoshis; int32_t i; double nxtkmd,price; struct LP_priceinfo *btcpp,*kmdpp,*fiatpp,*nxtpp; void *ctx = bitcoin_ctx();
while ( 1 )
{
if ( LP_autoprices == 0 )
{
sleep(60);
continue;
}
if ( (btcpp= LP_priceinfofind("BTC")) == 0 )
{
sleep(60);
continue;
}
if ( LP_autoprices != 0 )
{
if ( (retstr= issue_curlt("https://bittrex.com/api/v1.1/public/getmarketsummaries",LP_HTTP_TIMEOUT*10)) == 0 )
{
printf("error getting marketsummaries\n");
@ -366,6 +363,7 @@ void prices_loop(void *ignore)
}
}
}
}
if ( LP_autofills > 0 )
{
char *buycoin,*sellcoin; struct iguana_info *buy,*sell;

Loading…
Cancel
Save