-
Notifications
You must be signed in to change notification settings - Fork 622
Added ability to query 24hr ticker price change statistics for all sy… #60
Conversation
…mbols and to query latest price for single symbol Signed-off-by: Sai Chaitanya Chitneedi <nomail_forme@yahoo.in>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nomailforme thank you for this, it looks good, could you please just apply the changes I mentioned in the code review before I merge it into master?
* @param symbol ticker symbol (e.g. ETHBTC) | ||
* @param callback the callback that handles the response | ||
*/ | ||
void getSymbolPrice(String symbol , BinanceApiCallback<TickerPrice> callback); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be called getPrice
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
@Override | ||
public void getAll24HrPriceStatistics(BinanceApiCallback<List<TickerStatistics>> callback) { | ||
binanceApiService.getAll24HrPriceStatistics().enqueue(new BinanceApiCallbackAdapter<>(callback)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use 2 whitespaces for indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, But I would have much preferred tab for indentation. Its more standard In my opinion :)
|
||
@GET("/api/v1/ticker/allPrices") | ||
Call<List<TickerPrice>> getLatestPrices(); | ||
|
||
@GET("/api/v3/ticker/price") | ||
Call<TickerPrice> getSymbolPrice(@Query("symbol") String symbol); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency, can you please call this getLatestPrice
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Made changes. Feel free to merge :) |
Thank you @nomailforme . |
Added ability to query 24hr ticker price change statistics for all symbols.
Added ability to query 24hr ticker price change statistics for all symbols and to query latest price for single symbol
Signed-off-by: Sai Chaitanya Chitneedi