diff options
author | jloup <jeanloup.jamet@gmail.com> | 2018-05-09 19:44:17 +0200 |
---|---|---|
committer | jloup <jeanloup.jamet@gmail.com> | 2018-05-09 19:44:17 +0200 |
commit | 24e4797900b3d2edf642fdb547bc22357a5b39ad (patch) | |
tree | a2e62dd7382eb4c9ba817c25ba2fa15a659638d3 /cmd/web/js/account.jsx | |
parent | 78e3e81ddf01f41102f3f4e32c5a3955cf5fb04f (diff) | |
download | Front-24e4797900b3d2edf642fdb547bc22357a5b39ad.tar.gz Front-24e4797900b3d2edf642fdb547bc22357a5b39ad.tar.zst Front-24e4797900b3d2edf642fdb547bc22357a5b39ad.zip |
Refactor Portfolio balance.
Diffstat (limited to 'cmd/web/js/account.jsx')
-rw-r--r-- | cmd/web/js/account.jsx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cmd/web/js/account.jsx b/cmd/web/js/account.jsx index 43e7083..d30abe7 100644 --- a/cmd/web/js/account.jsx +++ b/cmd/web/js/account.jsx | |||
@@ -8,7 +8,7 @@ class PoloniexConfiguration extends React.Component { | |||
8 | } | 8 | } |
9 | 9 | ||
10 | checkCredentials = () => { | 10 | checkCredentials = () => { |
11 | Api.Call('MARKET_BALANCE', {'name': 'poloniex', 'currency': 'BTC'}, function(err, status, data) { | 11 | Api.Call('MARKET_TEST_CREDENTIALS', {'name': 'poloniex'}, function(err, status, data) { |
12 | if (err) { | 12 | if (err) { |
13 | console.error(err, data); | 13 | console.error(err, data); |
14 | if (err.code === 'invalid_market_credentials') { | 14 | if (err.code === 'invalid_market_credentials') { |
@@ -28,13 +28,6 @@ class PoloniexConfiguration extends React.Component { | |||
28 | } | 28 | } |
29 | 29 | ||
30 | handleCredentialsSubmit = () => { | 30 | handleCredentialsSubmit = () => { |
31 | |||
32 | /* | ||
33 | *If (!this.state.apiKey || !this.state.apiSecret) { | ||
34 | * return; | ||
35 | *} | ||
36 | */ | ||
37 | |||
38 | Api.Call('UPDATE_MARKET', {'key': this.state.apiKey, 'secret': this.state.apiSecret, 'name': 'poloniex'}, function(err, status, data) { | 31 | Api.Call('UPDATE_MARKET', {'key': this.state.apiKey, 'secret': this.state.apiSecret, 'name': 'poloniex'}, function(err, status, data) { |
39 | if (err) { | 32 | if (err) { |
40 | console.error(err, data); | 33 | console.error(err, data); |