mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 07:26:47 +00:00
Periodic pairsLastUpdated timestamp update
Fix other GoReportCard warnings
This commit is contained in:
@@ -421,6 +421,9 @@ func TestSubmitOrder(t *testing.T) {
|
||||
SecondCurrency: symbol.USDT,
|
||||
}
|
||||
accounts, err := h.GetAccounts()
|
||||
if err != nil {
|
||||
t.Errorf("Failed to get accounts. Err: %s", err)
|
||||
}
|
||||
|
||||
response, err := h.SubmitOrder(p, exchange.Buy, exchange.Limit, 1, 10, strconv.FormatInt(accounts[0].ID, 10))
|
||||
if err != nil || !response.IsOrderPlaced {
|
||||
|
||||
@@ -240,6 +240,10 @@ func (h *HUOBI) GetExchangeHistory(p pair.CurrencyPair, assetType string) ([]exc
|
||||
func (h *HUOBI) SubmitOrder(p pair.CurrencyPair, side exchange.OrderSide, orderType exchange.OrderType, amount, price float64, clientID string) (exchange.SubmitOrderResponse, error) {
|
||||
var submitOrderResponse exchange.SubmitOrderResponse
|
||||
accountID, err := strconv.ParseInt(clientID, 10, 64)
|
||||
if err != nil {
|
||||
return submitOrderResponse, err
|
||||
}
|
||||
|
||||
var formattedType SpotNewOrderRequestParamsType
|
||||
var params = SpotNewOrderRequestParams{
|
||||
Amount: amount,
|
||||
|
||||
Reference in New Issue
Block a user