Comparing version 0.1.2 to 0.1.3
# Change Log | ||
## v0.1.3 / 2018-09-28 | ||
### Added | ||
- timestamp to trades and my trades. | ||
### Fixed | ||
- order book bug | ||
## v0.1.2 / 2018-09-25 | ||
@@ -4,0 +11,0 @@ ### Fixed |
{ | ||
"name": "joyso", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "JOYSO API client library for trading.", | ||
@@ -5,0 +5,0 @@ "main": "src/joyso.js", |
@@ -28,3 +28,3 @@ # JOYSO | ||
```JavaScript | ||
joyso.subscribeOrderBook('ETH_JOY', orderBook => { | ||
const subscription = joyso.subscribeOrderBook('ETH_JOY', orderBook => { | ||
console.log(JSON.stringify(orderBook)); | ||
@@ -63,3 +63,3 @@ }); | ||
```JavaScript | ||
joyso.subscribeTrades('ETH_JOY', trades => { | ||
const subscription = joyso.subscribeTrades('ETH_JOY', trades => { | ||
console.log(JSON.stringify(trades.slice(0, 2))); | ||
@@ -92,3 +92,3 @@ }); | ||
```JavaScript | ||
joyso.subscribeBalances(balances => { | ||
const subscription = joyso.subscribeBalances(balances => { | ||
console.log(JSON.stringify(balances)); | ||
@@ -115,3 +115,3 @@ }); | ||
```JavaScript | ||
joyso.subscribeOrders(orders => { | ||
const subscription = joyso.subscribeOrders(orders => { | ||
console.log(JSON.stringify(orders)); | ||
@@ -149,3 +149,3 @@ }); | ||
```JavaScript | ||
joyso.subscribeMyTrades(trades => { | ||
const subscription = joyso.subscribeMyTrades(trades => { | ||
console.log(JSON.stringify(trades.slice(0, 2))); | ||
@@ -188,3 +188,3 @@ }); | ||
```JavaScript | ||
joyso.subscribeFunds(funds => { | ||
const subscription = joyso.subscribeFunds(funds => { | ||
console.log(JSON.stringify(funds)); | ||
@@ -315,2 +315,9 @@ }); | ||
### subscription.unsubscribe() | ||
Unsubscribe | ||
```JavaScript | ||
subscription.unsubscribe(); | ||
``` | ||
## License | ||
@@ -317,0 +324,0 @@ The project is released under the [MIT license](http://www.opensource.org/licenses/MIT). |
@@ -87,3 +87,4 @@ const rp = require('request-promise'); | ||
gasFee: gasFee, | ||
txFee: txFee | ||
txFee: txFee, | ||
timestamp: trade.timestamp | ||
}; | ||
@@ -90,0 +91,0 @@ }); |
@@ -22,2 +22,5 @@ const rp = require('request-promise'); | ||
received: data => { | ||
if (!this.orderBook) { | ||
return; | ||
} | ||
['buy', 'sell'].forEach(type => { | ||
@@ -24,0 +27,0 @@ Object.keys(data[type]).forEach(price => { |
@@ -55,3 +55,4 @@ const rp = require('request-promise'); | ||
amount: quoteAmount, | ||
pair: `${base.symbol}_${quote.symbol}` | ||
pair: `${base.symbol}_${quote.symbol}`, | ||
timestamp: trade.timestamp | ||
}; | ||
@@ -58,0 +59,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61825
1597
321