github.com/frankrap/okex-api@v1.0.4/swap_params.go (about)

     1  package okex
     2  
     3  /*
     4   OKEX swap api parameter's definition
     5   @author Lingting Fu
     6   @date 2018-12-27
     7   @version 1.0.0
     8  */
     9  
    10  type BasePlaceOrderInfo struct {
    11  	ClientOid  string `json:"client_oid"`
    12  	Price      string `json:"price"`
    13  	MatchPrice string `json:"match_price"`
    14  	Type       string `json:"type"`
    15  	OrderType  string `json:"order_type"`
    16  	Size       string `json:"size"`
    17  }
    18  
    19  type PlaceOrderInfo struct {
    20  	BasePlaceOrderInfo
    21  	InstrumentId string `json:"instrument_id"`
    22  }
    23  
    24  type PlaceOrdersInfo struct {
    25  	InstrumentId string                `json:"instrument_id"`
    26  	OrderData    []*BasePlaceOrderInfo `json:"order_data"`
    27  }