Skip to content

Commit

Permalink
update to v2 api
Browse files Browse the repository at this point in the history
  • Loading branch information
CheshireCatNick committed Nov 15, 2019
1 parent c983b09 commit ab6bd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/k-line.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class KLine {
init(start, end, pair, interval) {
this.pair = pair.split('-');
const path = '/kline/query_unite_candle_data?' +
`base=${this.pair[0]}&quote=${this.pair[1]}&market=pionex&` +
`base=${this.pair[0]}&quote=${this.pair[1]}&market=pionex.v2&` +
`start=${start.unix()}&end=${end.unix()}&interval=${interval}&from=web`;

return this.restClient.get(path, {}).then(d => {
Expand Down

0 comments on commit ab6bd2f

Please sign in to comment.