Documentation ¶
Index ¶
- func AddDelayBill(store models.Store, userId int64, currency string, ...) (*models.Bill, error)
- func AddFills(fills []*models.Fill) error
- func AddTicks(ticks []*models.Tick) error
- func AddTrades(trades []*models.Trade) error
- func ChangePassword(email, newPassword string) error
- func CheckToken(tokenStr string) (*models.User, error)
- func CreateUser(email, password string) (*models.User, error)
- func ExecuteBill(userId int64, currency string) error
- func ExecuteFill(orderId int64) error
- func GetAccount(userId int64, currency string) (*models.Account, error)
- func GetAccountsByUserId(userId int64) ([]*models.Account, error)
- func GetConfigs() ([]*models.Config, error)
- func GetFeeRateByUserLevel(userLevel string) (*models.FeeRate, error)
- func GetLastTickByProductId(productId string, granularity int64) (*models.Tick, error)
- func GetLastTicksAllByProductId(productId string) ([]*models.Tick, error)
- func GetOrderByClientOid(userId int64, clientOid string) (*models.Order, error)
- func GetOrderById(orderId int64) (*models.Order, error)
- func GetOrdersByUserId(userId int64, statuses []models.OrderStatus, side *models.Side, ...) ([]*models.Order, error)
- func GetProductById(id string) (*models.Product, error)
- func GetProducts() ([]*models.Product, error)
- func GetTicksByProductId(productId string, granularity int64, limit int) ([]*models.Tick, error)
- func GetTradesByProductId(productId string, count int) ([]*models.Trade, error)
- func GetUnsettledBills() ([]*models.Bill, error)
- func GetUnsettledFills(count int32) ([]*models.Fill, error)
- func GetUserByEmail(email string) (*models.User, error)
- func GetUserByPassword(email, password string) (*models.User, error)
- func HasEnoughBalance(userId int64, currency string, size decimal.Decimal) (bool, error)
- func HoldBalance(db models.Store, userId int64, currency string, size decimal.Decimal, ...) error
- func PlaceOrder(userId int64, userLevel string, clientOid string, productId string, ...) (*models.Order, error)
- func RefreshAccessToken(email, password string) (string, error)
- func UpdateOrderStatus(orderId int64, oldStatus, newStatus models.OrderStatus) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDelayBill ¶
func ChangePassword ¶
func ExecuteBill ¶
func ExecuteFill ¶
func GetConfigs ¶
func GetLastTickByProductId ¶
func GetOrderByClientOid ¶
func GetOrdersByUserId ¶
func GetProducts ¶
func GetTicksByProductId ¶
func GetTradesByProductId ¶
func GetUnsettledBills ¶
func HasEnoughBalance ¶
func HoldBalance ¶
func PlaceOrder ¶
func RefreshAccessToken ¶
func UpdateOrderStatus ¶
func UpdateOrderStatus(orderId int64, oldStatus, newStatus models.OrderStatus) (bool, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.