mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
maxapi/v3: apply order type constant type
This commit is contained in:
parent
2f8020efd6
commit
2380ebb285
|
@ -14,7 +14,7 @@ type CreateWalletOrderRequest struct {
|
|||
market string `param:"market,required"`
|
||||
side string `param:"side,required"`
|
||||
volume string `param:"volume,required"`
|
||||
orderType string `param:"ord_type"`
|
||||
orderType OrderType `param:"ord_type"`
|
||||
|
||||
price *string `param:"price"`
|
||||
stopPrice *string `param:"stop_price"`
|
||||
|
|
|
@ -27,7 +27,7 @@ func (c *CreateWalletOrderRequest) Volume(volume string) *CreateWalletOrderReque
|
|||
return c
|
||||
}
|
||||
|
||||
func (c *CreateWalletOrderRequest) OrderType(orderType string) *CreateWalletOrderRequest {
|
||||
func (c *CreateWalletOrderRequest) OrderType(orderType max.OrderType) *CreateWalletOrderRequest {
|
||||
c.orderType = orderType
|
||||
return c
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user