Skip to content

Commit

Permalink
The old ticker link is deprecated and doesn't available now
Browse files Browse the repository at this point in the history
  • Loading branch information
wwarlock committed Jun 29, 2018
1 parent 1d5941f commit 56578fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exchanges/okcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static RestApi& queryHandle(Parameters &params)
quote_t getQuote(Parameters &params)
{
auto &exchange = queryHandle(params);
unique_json root { exchange.getRequest("/api/ticker.do?ok=1") };
unique_json root { exchange.getRequest("/api/v1/ticker.do?symbol=btc_usd") };
const char *quote = json_string_value(json_object_get(json_object_get(root.get(), "ticker"), "buy"));
auto bidValue = quote ? std::stod(quote) : 0.0;

Expand Down

0 comments on commit 56578fc

Please sign in to comment.