diff --git a/pkg/types/margin.go b/pkg/types/margin.go index 67f2cc128..268ea6faa 100644 --- a/pkg/types/margin.go +++ b/pkg/types/margin.go @@ -2,6 +2,23 @@ package types import "github.com/c9s/bbgo/pkg/fixedpoint" +type FuturesExchange interface { + UseFutures() +} + +type FuturesSettings struct { + IsFutures bool +} + +func (s *FuturesSettings) UseFutures() { + s.IsFutures = true +} + +func (s FuturesSettings) GetFuturesSettings() FuturesSettings { + return s +} + + type MarginExchange interface { UseMargin() UseIsolatedMargin(symbol string)