Documentation
¶
Index ¶
- Constants
- func CancelOrder(ctx *gin.Context)
- func CancelOrders(ctx *gin.Context)
- func ChangePassword(ctx *gin.Context)
- func CheckToken() gin.HandlerFunc
- func GetAccounts(ctx *gin.Context)
- func GetConfigs(ctx *gin.Context)
- func GetCurrentUser(ctx *gin.Context) *entities.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 GetUserSelf(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 HttpServer
- type ProductVo
- type SignupRequest
Constants ¶
View Source
const ( Level1 = "1" Level2 = "2" Level3 = "3" )
View Source
const BITCOIN_ICON_ADDRESS = "https://bitcoin.org/asset"
View Source
const KeyCurrentUser = "__current_user"
Variables ¶
This section is empty.
Functions ¶
func CancelOrders ¶
DELETE /orders/?productId=BTC-USD&side=[buy, sell]
func CheckToken ¶
func CheckToken() gin.HandlerFunc
func GetAccounts ¶
func GetConfigs ¶
func GetProductOrderBook ¶
Get products/<product-id>/book?level=[1, 2, 3]
func GetWalletAddress ¶
TODO: Comming soon GET /wallets/{currency}/address
func GetWalletTransactions ¶
GET /wallets/{currency}/transaction
func StartServer ¶
func StartServer()
Types ¶
type HttpServer ¶
type HttpServer struct {
Addr string
}
func NewHttpServer ¶
func NewHttpServer(addr string) *HttpServer
func (*HttpServer) Start ¶
func (server *HttpServer) Start()
type ProductVo ¶
type ProductVo struct { Id string `json:"string"` 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.