mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
add MarginBorrowRepay interface
This commit is contained in:
parent
37b5d80f6f
commit
9f9f13dfe2
|
@ -1,6 +1,10 @@
|
||||||
package types
|
package types
|
||||||
|
|
||||||
import "github.com/c9s/bbgo/pkg/fixedpoint"
|
import (
|
||||||
|
"context"
|
||||||
|
|
||||||
|
"github.com/c9s/bbgo/pkg/fixedpoint"
|
||||||
|
)
|
||||||
|
|
||||||
type FuturesExchange interface {
|
type FuturesExchange interface {
|
||||||
UseFutures()
|
UseFutures()
|
||||||
|
@ -48,6 +52,11 @@ type MarginExchange interface {
|
||||||
// QueryMarginAccount(ctx context.Context) (*binance.MarginAccount, error)
|
// QueryMarginAccount(ctx context.Context) (*binance.MarginAccount, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MarginBorrowRepay interface {
|
||||||
|
RepayMarginAsset(ctx context.Context, asset string, amount fixedpoint.Value) error
|
||||||
|
BorrowMarginAsset(ctx context.Context, asset string, amount fixedpoint.Value) error
|
||||||
|
}
|
||||||
|
|
||||||
type MarginSettings struct {
|
type MarginSettings struct {
|
||||||
IsMargin bool
|
IsMargin bool
|
||||||
IsIsolatedMargin bool
|
IsIsolatedMargin bool
|
||||||
|
|
Loading…
Reference in New Issue
Block a user