Skip to main content

LMEX Spot Trade Connector

Features

crypto-lmexConnector Key
Instruments
FX
Request Types
SUBMITCANCELREPLACE
Order Types
LIMIT
Time In Force
GTCIOCFOK
Order ID Mapper
COMPOSITE
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

ParameterDefault ValueDescription
cancelAllOrdersAfternot enabledHas 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
websocketHeartbeatInterval10 secondsWebsocket ping interval.
tradesSyncSettings.allTradesRequestSizeLimit200Limitation for the number of trades in the account trade list history response. Maximum value is 500.
tradesSyncSettings.orderTradesRequestSizeLimit500Limitation for the number of trades in the single order trade list history response. Maximum value is 500.
tradesSyncSettings.tradeHistoryLookBackPeriod5sThe 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.maxInactiveOrderAge5mDelay 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

KeyDescription
1818 (PostOnly) attribute is relevant for LIMIT orders only. Possible values: 6.
59TimeInForce 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>"
}
]
}
}
}