Documentation
¶
Index ¶
- Constants
- type Core
- type Crypto
- type DB
- func (d *DB) Close()
- func (d *DB) CreateUserState(userID string, value any) string
- func (d *DB) DropState(ID string) error
- func (d *DB) DropUserState(userID string, ID string) error
- func (d *DB) DropUserStates(userID string) error
- func (d *DB) GetSates() (result []State)
- func (d *DB) GetUserSates(userID string) (result []State)
- type Http
- type State
- type Yaml
Constants ¶
View Source
const ( BINANCE_FAPI_ENDPOINT string = "https://fapi.binance.com/fapi/v1" BINANCE_FAPI_LEVERAGE string = "/leverage" BINANCE_FAPI_BATCH_ORDERS string = "/batchOrders" BINANCE_FAPI_DEPTH string = "/depth" BINANCE_FAPI_OPEN_ORDERS string = "/positionRisk" FUNDING_RATE_ENDPOINT string = "https://wiwisorich.capslock.tw" DEFAULT_LEVERAGE int = 10 DEFAULT_DIFFERENCE float64 = 0.05 DEFAULT_MINUTES float64 = 480 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
Setting *models.ConfigSetting
EventReceiver chan string
ID *string
RateLimiter ratelimit.Limiter
EventPublisher chan models.EventMessage
}
func (*Core) GetPublisher ¶
func (c *Core) GetPublisher() <-chan models.EventMessage
func (*Core) MakeRequest ¶
Click to show internal directories.
Click to hide internal directories.