Lamda.exch API
Lamda.exch provides an easy to use REST API (OpenAPI 3.0 specification) to allow third parties to easily collect data from the platform. Soon, the API will include most information that could be queried from the contracts directly. This API is used internally for some functions on our early keepers and can be used by third parties to integrate our data into their dashboards.
Find the endpoints and expected responses below.
Notes
Pass "reverse=true" to receive reverse order responses.
API keys are rate limited to 10 requests per minute. Contact us if you need higher limits.
Please consider this early documentation subject to drastic change. API development is incomplete.
Get a standard API key. Start here and contact us for higher rate limits.
GET
https://192.168.200.1/lmdx-api/apiKey
Query Parameters
reverse
String
Reverse response sort order
Show contracts.
GET
https://192.168.200.1/lmdx-api/contracts
This returns all contracts (both active and inactive). /contracts/active will hide old or inactive contracts.
Query Parameters
reverse
String
Reverse response sort order
symbol
String
Filter by specified token
count
String
Returns specified number of results
Show underlying data used to generate Lamda.exch exchange asset prices
GET
https://192.168.200.1/lmdx-apioracleSrcPrice
Query Parameters
reverse
String
Reverse response sort order
Show breakdown of pricing weights and sources for Lamda.exch oracle pricing.
GET
https://192.168.200.1/lmdx-api/compositeIndex
Lamda.exch oracle prices are computed from an index of multiple sources. This shows the current configuration.
Query Parameters
reverse
String
Reverse response sort order
filter
String
Filter by JSON key/values
symbol
String
Filter by symbol
Show exchange stats returned in current USD equivilant.
GET
https://192.168.200.1/lmdx-api/contracts/volumeUSD
Query Parameters
reverse
String
Reverse response sort order
symbol
String
Filter by symbol
Displays leaderboard
GET
https://192.168.200.1/lmdx-api/leaderboard
Lamda.exch oracle prices are computed from an index of multiple sources. This shows the current configuration.
Query Parameters
reverse
String
Reverse response sort order
method
String
Sort by either "grossvolume" or "ROI"
Displays liquidation history.
GET
https://192.168.200.1/lmdx-api/liquidation
Query Parameters
reverse
String
Reverse response sort order
contract
String
Shows liquidations for a specified contract
count
String
Limits number of responses (defaults to most recent)
Retrieve positions for a given wallet address.
GET
https://192.168.200.1/lmdx-api/position
Detailed position information for any wallet with a current open position.
Data returned:
wallet: Wallet address
contract: Active contract(s)
currency: Magin currency
quoteCurrency: Quoted currency of the contract
commission: Actual transaction fee after any account specific discount
leverage: Current position leverage
unrealizedPnL: Unrealized PnL
noContracts: Number of contracts in position
costMargin: Currency cost of the position returned in margin currency
oraclePrice: Underlying oralce price of traded symbols
valueQuote: Value of position in quoted currency
realizedPnL: Unrealized PnL of current position (when a partial number of contracts remain open)
liquidation: Position is subject to liquidation at this oracle price
Query Parameters
reverse
String
Reverse response sort order
filter
String
Filter by contract {"contract": "ETHUSD"}.
Displays statistics for exchange operations on the given chain
GET
https://192.168.200.1/lmdx-api/stats
Query Parameters
reverse
String
Reverse response sort order
Displays exchange statistics converted to USD values
GET
https://192.168.200.1/lmdx-api/stats/historyUSD
Query Parameters
reverse
String
Reverse response sort order
Displays affiliate configuration for a specified wallet
GET
https://192.168.200.1/lmdx-api/user/affiliateStatus
Query Parameters
reverse
String
Reverse response sort order
affWallet
String
Specify wallet to query. If blank returns all affiliates.
Last updated