github.com/vmpartner/bitmex@v1.1.0/swagger/execution.go (about)

     1  /* 
     2   * BitMEX API
     3   *
     4   * ## REST API for the BitMEX Trading Platform  [View Changelog](/app/apiChangelog)    #### Getting Started   ##### Fetching Data  All REST endpoints are documented below. You can try out any query right from this interface.  Most table queries accept `count`, `start`, and `reverse` params. Set `reverse=true` to get rows newest-first.  Additional documentation regarding filters, timestamps, and authentication is available in [the main API documentation](https://www.bitmex.com/app/restAPI).  *All* table data is available via the [Websocket](/app/wsAPI). We highly recommend using the socket if you want to have the quickest possible data without being subject to ratelimits.  ##### Return Types  By default, all data is returned as JSON. Send `?_format=csv` to get CSV data or `?_format=xml` to get XML data.  ##### Trade Data Queries  *This is only a small subset of what is available, to get you started.*  Fill in the parameters and click the `Try it out!` button to try any of these queries.  * [Pricing Data](#!/Quote/Quote_get)  * [Trade Data](#!/Trade/Trade_get)  * [OrderBook Data](#!/OrderBook/OrderBook_getL2)  * [Settlement Data](#!/Settlement/Settlement_get)  * [Exchange Statistics](#!/Stats/Stats_history)  Every function of the BitMEX.com platform is exposed here and documented. Many more functions are available.  ##### Swagger Specification  [⇩ Download Swagger JSON](swagger.json)    ## All API Endpoints  Click to expand a section. 
     5   *
     6   * OpenAPI spec version: 1.2.0
     7   * Contact: support@bitmex.com
     8   * Generated by: https://github.com/swagger-api/swagger-codegen.git
     9   */
    10  
    11  package swagger
    12  
    13  import (
    14  	"time"
    15  )
    16  
    17  // Raw Order and Balance Data
    18  type Execution struct {
    19  	ExecID string `json:"execID"`
    20  
    21  	OrderID string `json:"orderID,omitempty"`
    22  
    23  	ClOrdID string `json:"clOrdID,omitempty"`
    24  
    25  	ClOrdLinkID string `json:"clOrdLinkID,omitempty"`
    26  
    27  	Account float32 `json:"account,omitempty"`
    28  
    29  	Symbol string `json:"symbol,omitempty"`
    30  
    31  	Side string `json:"side,omitempty"`
    32  
    33  	LastQty float32 `json:"lastQty,omitempty"`
    34  
    35  	LastPx float64 `json:"lastPx,omitempty"`
    36  
    37  	UnderlyingLastPx float64 `json:"underlyingLastPx,omitempty"`
    38  
    39  	LastMkt string `json:"lastMkt,omitempty"`
    40  
    41  	LastLiquidityInd string `json:"lastLiquidityInd,omitempty"`
    42  
    43  	SimpleOrderQty float64 `json:"simpleOrderQty,omitempty"`
    44  
    45  	OrderQty float32 `json:"orderQty,omitempty"`
    46  
    47  	Price float64 `json:"price,omitempty"`
    48  
    49  	DisplayQty float32 `json:"displayQty,omitempty"`
    50  
    51  	StopPx float64 `json:"stopPx,omitempty"`
    52  
    53  	PegOffsetValue float64 `json:"pegOffsetValue,omitempty"`
    54  
    55  	PegPriceType string `json:"pegPriceType,omitempty"`
    56  
    57  	Currency string `json:"currency,omitempty"`
    58  
    59  	SettlCurrency string `json:"settlCurrency,omitempty"`
    60  
    61  	ExecType string `json:"execType,omitempty"`
    62  
    63  	OrdType string `json:"ordType,omitempty"`
    64  
    65  	TimeInForce string `json:"timeInForce,omitempty"`
    66  
    67  	ExecInst string `json:"execInst,omitempty"`
    68  
    69  	ContingencyType string `json:"contingencyType,omitempty"`
    70  
    71  	ExDestination string `json:"exDestination,omitempty"`
    72  
    73  	OrdStatus string `json:"ordStatus,omitempty"`
    74  
    75  	Triggered string `json:"triggered,omitempty"`
    76  
    77  	WorkingIndicator bool `json:"workingIndicator,omitempty"`
    78  
    79  	OrdRejReason string `json:"ordRejReason,omitempty"`
    80  
    81  	SimpleLeavesQty float64 `json:"simpleLeavesQty,omitempty"`
    82  
    83  	LeavesQty float32 `json:"leavesQty,omitempty"`
    84  
    85  	SimpleCumQty float64 `json:"simpleCumQty,omitempty"`
    86  
    87  	CumQty float32 `json:"cumQty,omitempty"`
    88  
    89  	AvgPx float64 `json:"avgPx,omitempty"`
    90  
    91  	Commission float64 `json:"commission,omitempty"`
    92  
    93  	TradePublishIndicator string `json:"tradePublishIndicator,omitempty"`
    94  
    95  	MultiLegReportingType string `json:"multiLegReportingType,omitempty"`
    96  
    97  	Text string `json:"text,omitempty"`
    98  
    99  	TrdMatchID string `json:"trdMatchID,omitempty"`
   100  
   101  	ExecCost float32 `json:"execCost,omitempty"`
   102  
   103  	ExecComm float32 `json:"execComm,omitempty"`
   104  
   105  	HomeNotional float64 `json:"homeNotional,omitempty"`
   106  
   107  	ForeignNotional float64 `json:"foreignNotional,omitempty"`
   108  
   109  	TransactTime time.Time `json:"transactTime,omitempty"`
   110  
   111  	Timestamp time.Time `json:"timestamp,omitempty"`
   112  }