req

package
v0.0.0-...-e2399e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL