Documentation ¶
Index ¶
- Constants
- func CancelOrder(ctx *gin.Context)
- func CancelOrders(ctx *gin.Context)
- func ChangePassword(ctx *gin.Context)
- func GetAccounts(ctx *gin.Context)
- func GetConfigs(ctx *gin.Context)
- func GetCurrentUser(ctx *gin.Context) *models.User
- func GetOrders(ctx *gin.Context)
- func GetProductCandles(ctx *gin.Context)
- func GetProductOrderBook(ctx *gin.Context)
- func GetProductTicker()
- func GetProductTrades(ctx *gin.Context)
- func GetProducts(ctx *gin.Context)
- func GetToken(ctx *gin.Context)
- func GetUsersSelf(ctx *gin.Context)
- func GetWalletAddress(ctx *gin.Context)
- func GetWalletTransactions(ctx *gin.Context)
- func PlaceOrder(ctx *gin.Context)
- func SignIn(ctx *gin.Context)
- func SignOut(ctx *gin.Context)
- func SignUp(ctx *gin.Context)
- func StartServer()
- func Withdrawal(ctx *gin.Context)
- type AccountVo
- type HttpServer
- type ProductVo
- type SignUpRequest
Constants ¶
View Source
const ( Level1 = "1" Level2 = "2" Level3 = "3" )
Variables ¶
This section is empty.
Functions ¶
func CancelOrder ¶
撤销指定id的订单 DELETE /orders/1 DELETE /orders/client:1
func CancelOrders ¶
批量撤单 DELETE /orders/?productId=BTC-USDT&side=[buy,sell]
func ChangePassword ¶
ChangePassword export - POST /users/password
func GetAccounts ¶
获取用户余额 GET /accounts?currency=BTC¤cy=USDT
func GetProductCandles ¶
GET /products/<product-id>/candles
func GetProductOrderBook ¶
GET /products/<product-id>/book?level=[1,2,3]
func GetWalletTransactions ¶
GET /wallets/{currency}/transactions
func StartServer ¶
func StartServer()
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer(addr string) *HttpServer
func (*HttpServer) Start ¶
func (server *HttpServer) Start()
type ProductVo ¶
type ProductVo struct { Id string `json:"id"` BaseCurrency string `json:"baseCurrency"` QuoteCurrency string `json:"quoteCurrency"` BaseMinSize string `json:"baseMinSize"` BaseMaxSize string `json:"baseMaxSize"` QuoteIncrement string `json:"quoteIncrement"` BaseScale int32 `json:"baseScale"` QuoteScale int32 `json:"quoteScale"` }
type SignUpRequest ¶
Click to show internal directories.
Click to hide internal directories.