bitopro-api-node
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "bitopro-api-node", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "BitoPro node.js SDK.", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -12,7 +12,6 @@ # bitopro-api-node | ||
- [Getting started](#getting-started) | ||
- [Rate Limit](#rate-limit) | ||
- [Precisions](#precisions) | ||
- [Price precision](#price-precision) | ||
- [Amount precision](#amount-precision) | ||
- [Minimum order amount](#minimum-order-amount) | ||
- [Limitations](#limitations) | ||
- [Rate Limit](#rate-limit) | ||
- [Precisions](#precisions) | ||
- [Minimum order amount](#minimum-order-amount) | ||
- [Public REST Endpoints](#public-rest-endpoints) | ||
@@ -47,23 +46,17 @@ - [getOrderBook](#getorderbook) | ||
### Rate Limit | ||
### Limitations | ||
| Types | Rate Limit | | ||
|---|---| | ||
| Public API | 600 requests per minute per IP | | ||
| Authenticated API | 600 requests per minute per IP/600 requests per minute per user| | ||
#### Rate Limit | ||
### Precisions | ||
There is rate limits applied to each API, please check [API documentation](https://developer.bitopro.com/docs) for more detail. | ||
#### Price precision | ||
#### Precisions | ||
The tick size of all pairs is 0.00000001, which means you can trade all pairs only for prices that are a multiple of 0.00000001. For example, you could place a buy BTC/TWD order at price 180,070.12345678. but you will fail to open an order at price 180,070.123456789. | ||
Both price and amount are subject to decimal restrictions, please check [official settings](https://www.bitopro.com/fees) for more detail. | ||
#### Amount precision | ||
#### Minimum order amount | ||
The same as price precision but you should be aware the [minimum order amount](#minimum-order-amount). | ||
Checkout the [official settings](https://www.bitopro.com/fees) of minimum amount. | ||
### Minimum order amount | ||
Checkout the [official settings](https://www.bitopro.com/fees) of minimum amount. | ||
### Public REST Endpoints | ||
@@ -70,0 +63,0 @@ |
@@ -170,5 +170,5 @@ const axios = require('axios') | ||
assert(order.timestamp, 'Please provide timestamp') | ||
assert(this.orderSides.includes(order.action), 'Parameter `side` must be buy or sell') | ||
assert(this.orderSides.includes(order.action.toLowerCase()), 'Parameter `side` must be buy or sell') | ||
assert(order.type, 'Please provide type') | ||
assert(this.orderTypes.includes(order.type), 'Parameter `type` must be market or limit') | ||
assert(this.orderTypes.includes(order.type.toLowerCase()), 'Parameter `type` must be market or limit') | ||
@@ -175,0 +175,0 @@ let url = this.baseUrl + '/orders/' + order.pair |
18061
553