mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-22 23:16:48 +00:00
Engine QA (#381)
* 1) Update Dockerfile/docker-compose.yml 2) Remove inline strings for buy/sell/test pairs 3) Remove dangerous order submission values 4) Fix consistency with audit_events (all other spec files use CamelCase) 5) Update web websocket endpoint 6) Fix main param set (and induce dryrun mode on specific command line params) * Engine QA Link up exchange syncer to cmd params, disarm market selling bombs and fix OKEX endpoints * Fix linter issue after merge * Engine QA changes Template updates Wrapper code cleanup Disarmed order bombs Documentation updates * Daily engine QA Bitstamp improvements Spelling mistakes Add Coinbene exchange to support list Protect API authenticated calls for Coinbene/LBank * Engine QA changes Fix exchange_wrapper_coverage tool Add SupportsAsset to exchange interface Fix inline string usage and add BCH withdrawal support * Engine QA Fix Bitstamp types Inform user of errors when parsing time accross the codebase Change time parsing warnings to errors (as they are) Update markdown docs [with linter fixes] * Engine QA changes 1) Add test for dryrunParamInteraction 2) Disarm OKCoin/OKEX bombs if someone accidently sets canManipulateRealOrders to true and runs all package tests 3) Actually check exchange setup errors for BTSE and Coinbene, plus address this in the wrapper template 4) Hardcode missing/non-retrievable contributors and bump the contributors 5) Convert numbers/strings to meaningful types in Bitstamp and OKEX 6) If WS is supported for the exchange wrapper template, preset authWebsocketSupport var * Fix the shadow people * Link the SyncContinuously paramerino * Also show SyncContinuously in engine.PrintSettings * Address nitterinos and use correct filepath for logs * Bitstamp: Extract ALL THE APM * Fix additional nitterinos * Fix time parsing error for Bittrex
This commit is contained in:
@@ -15,6 +15,7 @@ const (
|
||||
apiKey = ""
|
||||
apiSecret = ""
|
||||
canManipulateRealOrders = false
|
||||
testCurrency = "btc"
|
||||
)
|
||||
|
||||
var b Bithumb
|
||||
@@ -54,7 +55,7 @@ func TestGetTradablePairs(t *testing.T) {
|
||||
|
||||
func TestGetTicker(t *testing.T) {
|
||||
t.Parallel()
|
||||
_, err := b.GetTicker("btc")
|
||||
_, err := b.GetTicker(testCurrency)
|
||||
if err != nil {
|
||||
t.Error("Bithumb GetTicker() error", err)
|
||||
}
|
||||
@@ -70,7 +71,7 @@ func TestGetAllTickers(t *testing.T) {
|
||||
|
||||
func TestGetOrderBook(t *testing.T) {
|
||||
t.Parallel()
|
||||
_, err := b.GetOrderBook("btc")
|
||||
_, err := b.GetOrderBook(testCurrency)
|
||||
if err != nil {
|
||||
t.Error("Bithumb GetOrderBook() error", err)
|
||||
}
|
||||
@@ -78,7 +79,7 @@ func TestGetOrderBook(t *testing.T) {
|
||||
|
||||
func TestGetTransactionHistory(t *testing.T) {
|
||||
t.Parallel()
|
||||
_, err := b.GetTransactionHistory("btc")
|
||||
_, err := b.GetTransactionHistory(testCurrency)
|
||||
if err != nil {
|
||||
t.Error("Bithumb GetTransactionHistory() error", err)
|
||||
}
|
||||
@@ -90,7 +91,7 @@ func TestGetAccountBalance(t *testing.T) {
|
||||
t.Skip()
|
||||
}
|
||||
|
||||
_, err := b.GetAccountBalance("BTC")
|
||||
_, err := b.GetAccountBalance(testCurrency)
|
||||
if err == nil {
|
||||
t.Error("Bithumb GetAccountBalance() Expected error")
|
||||
}
|
||||
@@ -118,7 +119,7 @@ func TestGetLastTransaction(t *testing.T) {
|
||||
|
||||
func TestGetOrders(t *testing.T) {
|
||||
t.Parallel()
|
||||
_, err := b.GetOrders("1337", "bid", "100", "", "BTC")
|
||||
_, err := b.GetOrders("1337", order.Bid.Lower(), "100", "", testCurrency)
|
||||
if err == nil {
|
||||
t.Error("Bithumb GetOrders() Expected error")
|
||||
}
|
||||
@@ -134,7 +135,7 @@ func TestGetUserTransactions(t *testing.T) {
|
||||
|
||||
func TestPlaceTrade(t *testing.T) {
|
||||
t.Parallel()
|
||||
_, err := b.PlaceTrade("btc", "bid", 0, 0)
|
||||
_, err := b.PlaceTrade(testCurrency, order.Bid.Lower(), 0, 0)
|
||||
if err == nil {
|
||||
t.Error("Bithumb PlaceTrade() Expected error")
|
||||
}
|
||||
@@ -142,7 +143,7 @@ func TestPlaceTrade(t *testing.T) {
|
||||
|
||||
func TestGetOrderDetails(t *testing.T) {
|
||||
t.Parallel()
|
||||
_, err := b.GetOrderDetails("1337", "bid", "btc")
|
||||
_, err := b.GetOrderDetails("1337", order.Bid.Lower(), testCurrency)
|
||||
if err == nil {
|
||||
t.Error("Bithumb GetOrderDetails() Expected error")
|
||||
}
|
||||
@@ -185,7 +186,7 @@ func TestRequestKRWWithdraw(t *testing.T) {
|
||||
|
||||
func TestMarketBuyOrder(t *testing.T) {
|
||||
t.Parallel()
|
||||
_, err := b.MarketBuyOrder("btc", 0)
|
||||
_, err := b.MarketBuyOrder(testCurrency, 0)
|
||||
if err == nil {
|
||||
t.Error("Bithumb MarketBuyOrder() Expected error")
|
||||
}
|
||||
@@ -193,7 +194,7 @@ func TestMarketBuyOrder(t *testing.T) {
|
||||
|
||||
func TestMarketSellOrder(t *testing.T) {
|
||||
t.Parallel()
|
||||
_, err := b.MarketSellOrder("btc", 0)
|
||||
_, err := b.MarketSellOrder(testCurrency, 0)
|
||||
if err == nil {
|
||||
t.Error("Bithumb MarketSellOrder() Expected error")
|
||||
}
|
||||
|
||||
@@ -291,8 +291,7 @@ func (b *Bithumb) GetAccountInfo() (exchange.AccountInfo, error) {
|
||||
// GetFundingHistory returns funding history, deposits and
|
||||
// withdrawals
|
||||
func (b *Bithumb) GetFundingHistory() ([]exchange.FundHistory, error) {
|
||||
var fundHistory []exchange.FundHistory
|
||||
return fundHistory, common.ErrFunctionNotSupported
|
||||
return nil, common.ErrFunctionNotSupported
|
||||
}
|
||||
|
||||
// GetExchangeHistory returns historic trade data since exchange opening.
|
||||
|
||||
Reference in New Issue
Block a user