Skip to content

Commit e590db0

Browse files
Merge pull request #1 from Crypto-APIs/small-improvements
#noticket: set default results limit to 50; add .gitignore file
2 parents 5f95a78 + 8b8a2f0 commit e590db0

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
.node_modules

index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,17 @@ class CryptoAPIs {
180180
});
181181
}
182182

183-
getAllExchanges(skip = 0, limit = 100) {
183+
getAllExchanges(skip = 0, limit = 50) {
184184

185185
return this.getRequest('/exchanges?skip=' + skip + '&limit=' + limit);
186186
}
187187

188-
getAllAssets(skip = 0, limit = 100) {
188+
getAllAssets(skip = 0, limit = 50) {
189189

190190
return this.getRequest('/assets?skip=' + skip + '&limit=' + limit);
191191
}
192192

193-
getAllSymbols(skip = 0, limit = 100) {
193+
getAllSymbols(skip = 0, limit = 50) {
194194

195195
return this.getRequest('/mappings?skip=' + skip + '&limit=' + limit);
196196
}
@@ -210,17 +210,17 @@ class CryptoAPIs {
210210
return this.getRequest('/ohlcv/periods');
211211
}
212212

213-
getOHLCVLatestData(symbol, period, limit = 100) {
213+
getOHLCVLatestData(symbol, period, limit = 50) {
214214

215215
return this.getRequest('/ohlcv/latest/' + symbol + '?period=' + period + '&limit=' + limit);
216216
}
217217

218-
getOHLCVHistoricalData(symbol, period, timePeriodStart, timePeriodEnd, limit = 100) {
218+
getOHLCVHistoricalData(symbol, period, timePeriodStart, timePeriodEnd, limit = 50) {
219219

220220
return this.getRequest('/ohlcv/history/' + symbol + '?period=' + period + '&timePeriodStart=' + timePeriodStart + '&timePeriodEnd=' + timePeriodEnd + '&limit=' + limit);
221221
}
222222

223-
tradesGetLatestData(skip = 0, limit = 100) {
223+
tradesGetLatestData(skip = 0, limit = 50) {
224224

225225
return this.getRequest('/trades/latest?skip=' + skip + '&limit=' + limit);
226226
}
@@ -230,17 +230,17 @@ class CryptoAPIs {
230230
return this.getRequest('/trades/' + symbol + '/latest');
231231
}
232232

233-
tradesGetHistoricalData(symbol, timeStart, timeEnd, skip = 0, limit = 100) {
233+
tradesGetHistoricalData(symbol, timeStart, timeEnd, skip = 0, limit = 50) {
234234

235235
return this.getRequest('/trades/' + symbol + '/history?timeStart=' + timeStart + '&timeEnd=' + timeEnd + '&skip=' + skip + '&limit=' + limit);
236236
}
237237

238-
quotesGetLatestData(skip = 0, limit = 100) {
238+
quotesGetLatestData(skip = 0, limit = 50) {
239239

240240
return this.getRequest('/quotes/latest?skip=' + skip + '&limit=' + limit);
241241
}
242242

243-
quotesGetHistoricalData(symbol, timeStart, timeEnd, skip = 0, limit = 100) {
243+
quotesGetHistoricalData(symbol, timeStart, timeEnd, skip = 0, limit = 50) {
244244

245245
return this.getRequest('/quotes/' + symbol + '/history?timeStart=' + timeStart + '&timeEnd=' + timeEnd + '&skip=' + skip + '&limit=' + limit);
246246
}

0 commit comments

Comments
 (0)