From 4ece3f0834db9bd2e4f043d74d2a149217d48c45 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 3 Jun 2017 11:00:52 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_prices.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index 6f202c070..d7b29804b 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -322,13 +322,13 @@ char *LP_orderbook(char *base,char *rel) retjson = cJSON_CreateObject(); array = cJSON_CreateArray(); if ( numbids > 1 ) - qsort(bids,numbids,sizeof(*bids),_cmp_orderbook); + qsort(bids,numbids,sizeof(*bids),_cmp_orderbookrev); for (i=0; i 1 ) - qsort(asks,numasks,sizeof(*asks),_cmp_orderbookrev); + qsort(asks,numasks,sizeof(*asks),_cmp_orderbook); for (i=0; i