LMEX Spot Trade Connector
Features
crypto-lmexConnector Key✗
Order Status Request
✓
Cancel On Disconnect
✓
Commission
✓
Post Only
✓
Fast Cancel
✗
Fast Replace
Notes
Cancel/Replace
warning
Only price change is allowed.
Time In Force
Time In Force for orders may be overridden with 59 (TimeInForce) attribute. The attribute is passed to the Exchange as is.
Symbology
Currency pairs in BASE-QUOTE format, e.g. BTC-USDT, DOT-USD.
Configuration
Connector settings
| Parameter | Default Value | Description |
|---|---|---|
| cancelAllOrdersAfter | not enabled | Has two settings: period, timeout. This feature can work like Cancel-On-Disconnect behavior. https://docs.lmex.io/pages/spot-3.3.html#/operations/post-api-v3.3-order-cancelAllAfter |
| websocketHeartbeatInterval | 10 seconds | Websocket ping interval. |
| tradesSyncSettings.allTradesRequestSizeLimit | 200 | Limitation for the number of trades in the account trade list history response. Maximum value is 500. |
| tradesSyncSettings.orderTradesRequestSizeLimit | 500 | Limitation for the number of trades in the single order trade list history response. Maximum value is 500. |
| tradesSyncSettings.tradeHistoryLookBackPeriod | 5s | The time interval from order creation to the past for the start time filter of the trade history requests (all trade history and trade history for a single order). |
| tradesSyncSettings.maxInactiveOrderAge | 5m | Delay before INACTIVE order cancellation after synchronization. The delay counts from the orders submission. Inactive state is reported by the exchange for unknown or closed orders. |
Supported order attributes
| Key | Description |
|---|---|
| 18 | 18 (PostOnly) attribute is relevant for LIMIT orders only. Possible values: 6. |
| 59 | TimeInForce override for an order. Expected values: GTC, IOC, FOK, HALFMIN, FIVEMIN, HOUR, TWELVEHOUR, DAY, WEEK or MONTH. |
Config sample
connectors {
LMEX: ${template.connector.crypto.lmex} {
settings {
restUrl = "https://api.lmex.io"
websocketUrl = "wss://ws.lmex.io/ws/spot"
apiKeys: [
{
apiKey = "<API_KEY>"
apiSecret = "<API_SECRET>"
}
]
}
}
}