github.com/vmpartner/bitmex@v1.1.0/swagger/order.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 // Placement, Cancellation, Amending, and History 18 type Order struct { 19 OrderID string `json:"orderID"` 20 21 ClOrdID string `json:"clOrdID,omitempty"` 22 23 ClOrdLinkID string `json:"clOrdLinkID,omitempty"` 24 25 Account float32 `json:"account,omitempty"` 26 27 Symbol string `json:"symbol,omitempty"` 28 29 Side string `json:"side,omitempty"` 30 31 SimpleOrderQty float64 `json:"simpleOrderQty,omitempty"` 32 33 OrderQty float32 `json:"orderQty,omitempty"` 34 35 Price float64 `json:"price,omitempty"` 36 37 DisplayQty float32 `json:"displayQty,omitempty"` 38 39 StopPx float64 `json:"stopPx,omitempty"` 40 41 PegOffsetValue float64 `json:"pegOffsetValue,omitempty"` 42 43 PegPriceType string `json:"pegPriceType,omitempty"` 44 45 Currency string `json:"currency,omitempty"` 46 47 SettlCurrency string `json:"settlCurrency,omitempty"` 48 49 OrdType string `json:"ordType,omitempty"` 50 51 TimeInForce string `json:"timeInForce,omitempty"` 52 53 ExecInst string `json:"execInst,omitempty"` 54 55 ContingencyType string `json:"contingencyType,omitempty"` 56 57 ExDestination string `json:"exDestination,omitempty"` 58 59 OrdStatus string `json:"ordStatus,omitempty"` 60 61 Triggered string `json:"triggered,omitempty"` 62 63 WorkingIndicator bool `json:"workingIndicator,omitempty"` 64 65 OrdRejReason string `json:"ordRejReason,omitempty"` 66 67 SimpleLeavesQty float64 `json:"simpleLeavesQty,omitempty"` 68 69 LeavesQty float32 `json:"leavesQty,omitempty"` 70 71 SimpleCumQty float64 `json:"simpleCumQty,omitempty"` 72 73 CumQty float32 `json:"cumQty,omitempty"` 74 75 AvgPx float64 `json:"avgPx,omitempty"` 76 77 MultiLegReportingType string `json:"multiLegReportingType,omitempty"` 78 79 Text string `json:"text,omitempty"` 80 81 TransactTime time.Time `json:"transactTime,omitempty"` 82 83 Timestamp time.Time `json:"timestamp,omitempty"` 84 }