Documentation ¶
Index ¶
- func CheckHealth(c echo.Context) error
- func HTTPErrorHandler(err error, c echo.Context)
- func Start(p *orderbook.TradingPlatform)
- type AccountActionParams
- type AccountBalanceParams
- type AccountSendParams
- type Binder
- type CustomContext
- type HTTPError
- type MarketParams
- type PlaceOrderRequestParams
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHealth ¶
func CheckHealth(c echo.Context) error
func HTTPErrorHandler ¶
func HTTPErrorHandler(err error, c echo.Context)
func Start ¶
func Start(p *orderbook.TradingPlatform)
Types ¶
type AccountActionParams ¶
type AccountBalanceParams ¶
type AccountBalanceParams struct {
Signer string `json:"signer" form:"signer" query:"signer" validate:"required"`
}
type AccountSendParams ¶
type AccountSendParams struct { AccountActionParams Recipient string `json:"recipient" form:"recipient" query:"recipient" validate:"required"` }
type CustomContext ¶
type CustomContext struct { echo.Context // contains filtered or unexported fields }
type MarketParams ¶
type PlaceOrderRequestParams ¶
type PlaceOrderRequestParams struct { MarketParams Side orderbook.Side `json:"side" form:"side" query:"side" validate:"required"` Type orderbook.OrderType `json:"type" form:"type" query:"type" validate:"required"` Price float64 `json:"price" form:"price" query:"price" validate:"required"` Size float64 `json:"size" form:"size" query:"size" validate:"required"` }
Click to show internal directories.
Click to hide internal directories.