mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-07 15:11:03 +00:00
exchanges: Remove FTX implementation and fix minor test issues (#1100)
* exchanges: Start removal of FTX * Get tests happy again * okx: improve logic and add basic coverage * Fix linterino * Round 2 plus rm useless assignment in test * Fix exchange_wrapper_issues test error * Fix nitters * Address nitters
This commit is contained in:
@@ -270,6 +270,8 @@ func durationToWord(in Interval) string {
|
||||
return "oneday"
|
||||
case ThreeDay:
|
||||
return "threeday"
|
||||
case FiveDay:
|
||||
return "fiveday"
|
||||
case FifteenDay:
|
||||
return "fifteenday"
|
||||
case OneWeek:
|
||||
|
||||
@@ -214,6 +214,10 @@ func TestDurationToWord(t *testing.T) {
|
||||
"ThreeDay",
|
||||
ThreeDay,
|
||||
},
|
||||
{
|
||||
"FiveDay",
|
||||
FiveDay,
|
||||
},
|
||||
{
|
||||
"FifteenDay",
|
||||
FifteenDay,
|
||||
@@ -337,6 +341,11 @@ func TestTotalCandlesPerInterval(t *testing.T) {
|
||||
ThreeDay,
|
||||
121,
|
||||
},
|
||||
{
|
||||
"FiveDay",
|
||||
FiveDay,
|
||||
73,
|
||||
},
|
||||
{
|
||||
"FifteenDay",
|
||||
FifteenDay,
|
||||
|
||||
@@ -28,6 +28,7 @@ const (
|
||||
OneDay = 24 * OneHour
|
||||
TwoDay = 2 * OneDay
|
||||
ThreeDay = 3 * OneDay
|
||||
FiveDay = 5 * OneDay
|
||||
SevenDay = 7 * OneDay
|
||||
FifteenDay = 15 * OneDay
|
||||
OneWeek = 7 * OneDay
|
||||
|
||||
Reference in New Issue
Block a user