mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Updated Bitfinex REST API
This commit is contained in:
1127
bitfinexhttp.go
1127
bitfinexhttp.go
File diff suppressed because it is too large
Load Diff
@@ -36,8 +36,8 @@
|
||||
"AuthenticatedAPISupport": false,
|
||||
"APIKey": "Key",
|
||||
"APISecret": "Secret",
|
||||
"AvailablePairs": "BTCUSD,LTCUSD,DRKUSD",
|
||||
"EnabledPairs": "BTCUSD,LTCUSD,DRKUSD",
|
||||
"AvailablePairs": "BTCUSD,LTCUSD,LTCBTC",
|
||||
"EnabledPairs": "BTCUSD,LTCUSD,LTCBTC",
|
||||
"BaseCurrencies": "USD"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -116,7 +116,12 @@ func (e *Event) CheckCondition() bool {
|
||||
|
||||
/* to-do: add event handling for all currencies and fiat currencies */
|
||||
if bot.exchange.bitfinex.GetName() == e.Exchange {
|
||||
lastPrice = bot.exchange.bitfinex.GetTicker("btcusd").Last
|
||||
result, err := bot.exchange.bitfinex.GetTicker("btcusd", nil)
|
||||
if err != nil {
|
||||
lastPrice = 0
|
||||
} else {
|
||||
lastPrice = result.Last
|
||||
}
|
||||
} else if bot.exchange.bitstamp.GetName() == e.Exchange {
|
||||
lastPrice = bot.exchange.bitstamp.GetTicker().Last
|
||||
} else if bot.exchange.coinbase.GetName() == e.Exchange {
|
||||
|
||||
Reference in New Issue
Block a user