Add script for pulling radar orderbook

This commit is contained in:
fragosti
2019-02-12 14:49:32 -08:00
parent f3a537d5c2
commit 4db9b8b0e3
4 changed files with 105 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ export class RadarSource {
*/
public async getMarketOrderbookAsync(marketId: string): Promise<RadarBook> {
logUtils.log(`${marketId}: Retrieving orderbook.`);
const marketOrderbookUrl = `${ACTIVE_MARKETS_URL}/${marketId}/book`;
const marketOrderbookUrl = `${ACTIVE_MARKETS_URL}/${marketId}/book?perPage=${MAX_PER_PAGE}`;
const resp = await fetchAsync(marketOrderbookUrl);
return resp.json();
}