Documentation ¶ Index ¶ type Order func (o Order) Error(ctx *macaron.Context, render renders.Render, errs binding.Errors) func (o Order) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors type Withdraw Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Order ¶ type Order struct { Symbol string `json:"symbol" binding:"Required;MaxSize(10)"` Type string `json:"type" binding:"In(buy,sell,buy_market,sell_market)"` Price float64 `json:"price"` Amount int `json:"amount" binding:"Required;Range(1,999)"` } func (Order) Error ¶ func (o Order) Error(ctx *macaron.Context, render renders.Render, errs binding.Errors) func (Order) Validate ¶ func (o Order) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors type Withdraw ¶ type Withdraw struct { Symbol string `json:"symbol" binding:"Required;MaxSize(10)"` Serial string `json:"order_id" binding:"Required"` } Source Files ¶ View all Source files Order.go Withdraw.go Click to show internal directories. Click to hide internal directories.