Documentation
¶
Index ¶
- func AddDelayBill(store store.Store, userId int64, currency string, ...) (*entities.Bill, error)
- func AddFills(fills []*entities.Fill) error
- func AddTicks(ticks []*entities.Tick) error
- func AddTrades(trades []*entities.Trade) error
- func ChangePassword(email, newPassword string) error
- func CheckToken(tokenStr string) (*entities.User, error)
- func CreateUser(email, password string) (*entities.User, error)
- func ExecuteBill(userId int64, currency string) error
- func ExecuteFill(orderId int64) error
- func GetAccount(userId int64, currency string) (*entities.Account, error)
- func GetAccountsByUserId(userId int64) ([]*entities.Account, error)
- func GetConfigs() ([]*entities.Config, error)
- func GetLastTickByProductId(productId string, granularity int64) (*entities.Tick, error)
- func GetOrderByClientUid(userId int64, clientUuid string) (*entities.Order, error)
- func GetOrderById(orderId int64) (*entities.Order, error)
- func GetOrdersByUserId(userId int64, statuses []entities.OrderStatus, side *entities.Side, ...) ([]*entities.Order, error)
- func GetProductById(id string) (*entities.Product, error)
- func GetProducts() ([]*entities.Product, error)
- func GetTicksByProductId(productId string, granularity int64, limit int) ([]*entities.Tick, error)
- func GetTradesByProductId(productId string, count int) ([]*entities.Trade, error)
- func GetUnsettledBills() ([]*entities.Bill, error)
- func GetUnsettledFills(count int) ([]*entities.Fill, error)
- func GetUserByEmail(email string) (*entities.User, error)
- func GetUserByPassword(email, password string) (*entities.User, error)
- func HasEnoughBalance(userId int64, currency string, size decimal.Decimal) (bool, error)
- func HoldBalance(db store.Store, userId int64, currency string, size decimal.Decimal, ...) error
- func PlaceOrder(userId int64, clientUid string, productId string, orderType entities.OrderType, ...) (*entities.Order, error)
- func RefreshAccessToken(email, password string) (string, error)
- func UpdateOrderStatus(orderId int64, oldStatus, newStatus entities.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 GetOrderByClientUid ¶
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 entities.OrderStatus) (bool, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.