aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/src/http_client.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-02-15 06:43:43 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-02-15 06:43:43 +0800
commit95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6 (patch)
tree9fac722d0a4a80abbb0aae0c54b5f63874ddef2f /packages/connect/src/http_client.ts
parentab1f070901bf6dc6ba39abc1e0dd67c3c342a174 (diff)
downloaddexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar.gz
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar.bz2
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar.lz
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar.xz
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.tar.zst
dexon-sol-tools-95a9d7730182d4f8ed7b4dd953b4bb78f22d59d6.zip
Change default page params in connect to page 1 and perPage 100
Diffstat (limited to 'packages/connect/src/http_client.ts')
-rw-r--r--packages/connect/src/http_client.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/connect/src/http_client.ts b/packages/connect/src/http_client.ts
index 815d42e67..9e5f0f448 100644
--- a/packages/connect/src/http_client.ts
+++ b/packages/connect/src/http_client.ts
@@ -23,7 +23,7 @@ import { relayerResponseJsonParsers } from './utils/relayer_response_json_parser
const TRAILING_SLASHES_REGEX = /\/+$/;
const DEFAULT_PAGED_REQUEST_OPTS: PagedRequestOpts = {
- page: 0,
+ page: 1,
perPage: 100,
};
/**
@@ -66,7 +66,7 @@ export class HttpClient implements Client {
}
/**
* Retrieve token pair info from the API
- * @param requestOpts Options specifying token information to retrieve and page information, defaults to { page: 0, perPage: 100 }
+ * @param requestOpts Options specifying token information to retrieve and page information, defaults to { page: 1, perPage: 100 }
* @return The resulting TokenPairsItems that match the request
*/
public async getTokenPairsAsync(requestOpts?: TokenPairsRequestOpts & PagedRequestOpts): Promise<TokenPairsItem[]> {
@@ -83,7 +83,7 @@ export class HttpClient implements Client {
}
/**
* Retrieve orders from the API
- * @param requestOpts Options specifying orders to retrieve and page information, defaults to { page: 0, perPage: 100 }
+ * @param requestOpts Options specifying orders to retrieve and page information, defaults to { page: 1, perPage: 100 }
* @return The resulting SignedOrders that match the request
*/
public async getOrdersAsync(requestOpts?: OrdersRequestOpts & PagedRequestOpts): Promise<SignedOrder[]> {
@@ -112,7 +112,7 @@ export class HttpClient implements Client {
/**
* Retrieve an orderbook from the API
* @param request An OrderbookRequest instance describing the specific orderbook to retrieve
- * @param requestOpts Options specifying page information, defaults to { page: 0, perPage: 100 }
+ * @param requestOpts Options specifying page information, defaults to { page: 1, perPage: 100 }
* @return The resulting OrderbookResponse that matches the request
*/
public async getOrderbookAsync(