Connexion MEXC pour LinkyFlow

Connexion MEXC pour LinkyFlow

LinkyFlow ramene les donnees MEXC dans Excel avec 32 workflows pour analyser les marches, suivre les wallets et preparer vos reportings sans changer d outil.

Ressources

21

Requetes de lecture

19

Actions ecriture

13

Champs documentes

298

Workflows a ramener dans Excel

Chaque ressource ci-dessous correspond a un workflow tableur concret. Les lectures ramenent des colonnes utiles dans Excel; les creations et modifications indiquent ce qui peut etre relu en lignes avant envoi.

Connection

Get My Capabilities

What this connection can actually do right now: which account types are reachable and which operations are available or unavailable, with the reason. Costs no exchange call.

Lecture

Get My Capabilities

What this connection can actually do right now: which account types are reachable and which operations are available or unavailable, with the reason. Costs no exchange call.

Route: GET /myCapabilities

Formule Excel: =LF.mexc.myCapabilities("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
Donnees retournees dans Excel
Field
Type
Relations
Description
provider

enum

—

-

providerEnvironment

enum

—

-

linkyflowStage

enum

—

-

accountTypes

string[]

—

-

capabilities

string

—

-

Futures

Get Funding Rate

Retrieve the current funding rate for the given perpetual contract symbols

Lecture

Get Funding Rate

Retrieve the current funding rate for the given perpetual contract symbols

Route: GET /getFundingRate

Formule Excel: =LF.mexc.getFundingRate("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
symbolsenumYesFutures/perpetual contract symbols, e.g. BTC/USDT:USDT
marketDataEnvironmentenumNoWhere the prices come from. Defaults to the selected connection's environment, so a testnet connection is never shown production prices with... Values: production, testnet, demo
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

fundingRate

number

—

-

markPrice

number

—

-

indexPrice

number

—

-

interestRate

number

—

-

estimatedSettlePrice

number

—

-

nextFundingRate

number

—

-

fundingTimestamp

number

—

-

fundingDatetime

date

—

-

nextFundingTimestamp

number

—

-

nextFundingDatetime

date

—

-

interval

string

—

-

timestamp

number

—

-

datetime

date

—

-

_meta

string

—

-

Get My Futures Balances

Fetch my futures (swap) wallet balances (free, used, total)

Lecture

Get My Futures Balances

Fetch my futures (swap) wallet balances (free, used, total)

Route: GET /myFuturesBalances

Formule Excel: =LF.mexc.myFuturesBalances("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
onlyPositivebooleanNoFilter to show only positive balances Default: true
Donnees retournees dans Excel
Field
Type
Relations
Description
free

number

—

-

used

number

—

-

total

number

—

-

asset

enum

—

-

Modification

Margin Mode

Margin Mode

Route: POST /mutation/setMarginMode

Entrees configurables
NameTypeRequiredDescription
marginModeenumYesValues: isolated, cross
symbolenumYes-
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Get My Positions

List my open futures positions with P&L and risk metrics

Lecture

Get My Positions

List my open futures positions with P&L and risk metrics

Route: GET /myPositions

Formule Excel: =LF.mexc.myPositions("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
symbolsenumNoFutures/perpetual contract symbols, e.g. BTC/USDT:USDT
accountTypeenumNoWhich futures account: future_usdm (USD-margined, the default) or future_coinm (coin-margined). They are separate wallets with separate posi... Default: future_usdm Values: future_usdm, future_coinm
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

side

enum

—

-

contracts

number

—

-

contractSize

number

—

-

notional

number

—

-

entryPrice

number

—

-

markPrice

number

—

-

liquidationPrice

number

—

-

unrealizedPnl

number

—

-

leverage

number

—

-

marginMode

enum

—

-

hedged

boolean

—

-

percentage

number

—

-

initialMargin

number

—

-

initialMarginPercentage

number

—

-

maintenanceMargin

number

—

-

maintenanceMarginPercentage

number

—

-

marginRatio

number

—

-

collateral

number

—

-

timestamp

number

—

-

datetime

date

—

-

provider

enum

—

-

accountType

enum

—

-

closable

boolean

—

-

Creation

Futures Order

Futures Order

Route: POST /mutation/postFuturesTrade

Entrees configurables
NameTypeRequiredDescription
amountnumberYes-
leveragenumberNo-
marginModeenumNoValues: isolated, cross
pricenumberNo-
reduceOnlybooleanNo-
sideenumYesValues: buy, sell
symbolenumYes-
timeInForceenumNoValues: FOK, GTC, IOC, PO
typeenumYesValues: LIMIT, LIMIT_MAKER, MARKET
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Modification

Leverage

Leverage

Route: POST /mutation/setLeverage

Entrees configurables
NameTypeRequiredDescription
leveragenumberYes-
symbolenumYes-
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Modification

Close Position

Close Position

Route: POST /mutation/closePosition

Entrees configurables
NameTypeRequiredDescription
sideenumNoValues: long, short
symbolenumYes-
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Margin

Get My Borrow Interest

List the interest accrued on my margin borrows

Lecture

Get My Borrow Interest

List the interest accrued on my margin borrows

Route: GET /myBorrowInterest

Formule Excel: =LF.mexc.myBorrowInterest("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
assetenumNoAsset symbol for deposits or withdrawals Default: USDT
symbolenumNoTrading symbol or market pair, e.g. BTC/USDT
sincedateNoFetch data starting from this timestamp
limitnumberNoMaximum number of records to fetch
Donnees retournees dans Excel
Field
Type
Relations
Description
currency

string

—

-

symbol

enum

—

-

interest

number

—

-

interestRate

number

—

-

amountBorrowed

number

—

-

marginMode

enum

—

-

timestamp

number

—

-

datetime

date

—

-

Get My Borrow Rates

Current margin borrow interest rates (cross per asset, isolated per pair)

Lecture

Get My Borrow Rates

Current margin borrow interest rates (cross per asset, isolated per pair)

Route: GET /myBorrowRates

Formule Excel: =LF.mexc.myBorrowRates("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
assetenumNoAsset symbol for deposits or withdrawals Default: USDT
marginModeenumNoMargin mode for the position (isolated or cross) Default: cross Values: isolated, cross
Donnees retournees dans Excel
Field
Type
Relations
Description
currency

string

—

-

symbol

enum

—

-

rate

number

—

-

period

number

—

-

timestamp

number

—

-

datetime

date

—

-

Get My Margin Balances

Fetch my margin account balances with borrowed debt (cross or isolated)

Lecture

Get My Margin Balances

Fetch my margin account balances with borrowed debt (cross or isolated)

Route: GET /myMarginBalances

Formule Excel: =LF.mexc.myMarginBalances("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
onlyPositivebooleanNoFilter to show only positive balances Default: true
marginModeenumNoMargin mode for the position (isolated or cross) Default: cross Values: isolated, cross
symbolsenumNoList of trading symbols or market pairs, e.g. BTC/USDT, ETH/EUR
Donnees retournees dans Excel
Field
Type
Relations
Description
asset

enum

—

-

free

number

—

-

used

number

—

-

total

number

—

-

debt

number

—

-

symbol

enum

—

-

Creation

Margin Order

Margin Order

Route: POST /mutation/postMarginTrade

Entrees configurables
NameTypeRequiredDescription
amountnumberYes-
marginModeenumNoValues: isolated, cross
pricenumberNo-
sideenumYesValues: buy, sell
sideEffectenumNoValues: NO_SIDE_EFFECT, MARGIN_BUY, AUTO_REPAY, AUTO_BORROW_REPAY
symbolenumYes-
timeInForceenumNoValues: FOK, GTC, IOC, PO
typeenumYesValues: LIMIT, LIMIT_MAKER, MARKET
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Modification

Borrow

Borrow

Route: POST /mutation/borrowMargin

Entrees configurables
NameTypeRequiredDescription
amountnumberYes-
assetenumYes-
marginModeenumNoValues: isolated, cross
symbolenumNo-
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Modification

Repay

Repay

Route: POST /mutation/repayMargin

Entrees configurables
NameTypeRequiredDescription
amountnumberYes-
assetenumYes-
marginModeenumNoValues: isolated, cross
symbolenumNo-
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Spot

Cancel Order

Cancel one resting order, from its row.

Creation

Cancel Order

Cancel Order

Route: POST /mutation/openOrderCancel

Entrees configurables
NameTypeRequiredDescription
accountTypeenumNoValues: spot, margin_cross, margin_isolated, future_usdm, future_coinm
orderIdstringYes-
symbolenumYes-
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Cancel Order

Cancel one resting order, from its row.

Creation

Cancel Order

Cancel Order

Route: POST /mutation/orderCancel

Entrees configurables
NameTypeRequiredDescription
accountTypeenumNoValues: spot, margin_cross, margin_isolated, future_usdm, future_coinm
orderIdstringYes-
symbolenumYes-
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Get Market Metadata

Trading rules for a symbol: minimum and maximum quantity, lot step, price tick and minimum notional. Use it to size an order that the exchange will accept.

Lecture

Get Market Metadata

Trading rules for a symbol: minimum and maximum quantity, lot step, price tick and minimum notional. Use it to size an order that the exchange will accept.

Route: GET /getMarketMetadata

Formule Excel: =LF.mexc.getMarketMetadata("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
symbolenumYesTrading symbol or market pair, e.g. BTC/USDT
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

base

string

—

-

quote

string

—

-

settle

string

—

-

type

string

—

-

active

boolean

—

-

contract

boolean

—

-

minQty

string

—

-

maxQty

string

—

-

stepSize

string

—

-

tickSize

string

—

-

minNotional

string

—

-

maxNotional

string

—

-

minPrice

string

—

-

maxPrice

string

—

-

Get My Balances

Fetch my account balances (free, used, total). Filter with "assets" to read only the ones you care about instead of the whole wallet, and pick the account with "accountType".

Lecture

Get My Balances

Fetch my account balances (free, used, total). Filter with "assets" to read only the ones you care about instead of the whole wallet, and pick the account with "accountType".

Route: GET /myBalances

Formule Excel: =LF.mexc.myBalances("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
assetsenumNoOnly these assets, e.g. BTC,USDT. Omit for the whole wallet.
accountTypeenumNoWhich account: spot, margin_cross, margin_isolated, future_usdm or future_coinm. Default: spot Values: spot, margin_cross, margin_isolated, future_usdm, future_coinm
onlyPositivebooleanNoFilter to show only positive balances Default: true
limitnumberNoMaximum number of records to fetch
cursorstringNoOpaque cursor from a previous page. Pass it back verbatim; never build or edit one.
Donnees retournees dans Excel
Field
Type
Relations
Description
free

number

—

-

freeExact

string

—

-

used

number

—

-

usedExact

string

—

-

total

number

—

-

totalExact

string

—

-

debt

number

—

-

debtExact

string

—

-

asset

enum

—

-

accountType

enum

—

-

providerEnvironment

enum

—

-

Get My Deposits

List my deposit history. Not every connection can serve it — a sandbox account can be much narrower than the real venue — and the capability matrix says so up front rather than failing at the exchange.

Lecture

Get My Deposits

List my deposit history. Not every connection can serve it — a sandbox account can be much narrower than the real venue — and the capability matrix says so up front rather than failing at the exchange.

Route: GET /myDeposits

Formule Excel: =LF.mexc.myDeposits("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
assetenumNoAsset symbol for deposits or withdrawals Default: USDT
sincedateNoFetch data starting from this timestamp
untildateNoRead up to this date. ISO 8601 or an epoch in milliseconds.
statusenumNoCurrent status of the order or transaction
networkstringNoChain of a deposit or withdrawal, e.g. TRC20.
txIdstringNoOn-chain transaction id to look up.
limitnumberNoMaximum number of records to fetch
cursorstringNoOpaque cursor from a previous page. Pass it back verbatim; never build or edit one.
Donnees retournees dans Excel
Field
Type
Relations
Description
type

enum

—

-

status

enum

—

-

providerData

string

—

-

id

id

—

-

datetime

date

—

-

timestamp

number

—

-

amount

number

—

-

txid

string

—

-

network

string

—

-

address

string

—

-

addressFrom

string

—

-

addressTo

string

—

-

tag

string

—

-

tagTo

string

—

-

currency

string

—

-

updated

number

—

-

comment

string

—

-

fee_cost

number

—

-

fee_currency

string

—

-

fee_rate

number

—

-

fees

string

—

-

Get My Open Orders

List the orders still resting on the book, across every pair when no symbol is given. Use it to find the orderId to cancel.

Lecture

Get My Open Orders

List the orders still resting on the book, across every pair when no symbol is given. Use it to find the orderId to cancel.

Route: GET /myOpenOrders

Formule Excel: =LF.mexc.myOpenOrders("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
symbolenumYesTrading symbol or market pair, e.g. BTC/USDT
accountTypeenumNoWhich account: spot, margin_cross, margin_isolated, future_usdm or future_coinm. Default: spot Values: spot, margin_cross, margin_isolated, future_usdm, future_coinm
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

type

enum

—

-

status

enum

—

-

cancellable

boolean

—

-

id

id

—

-

providerOrderId

string

—

-

clientOrderId

string

—

-

datetime

date

—

-

timestamp

number

—

-

timeInForce

string

—

-

side

enum

—

-

price

number

—

-

priceExact

string

—

-

averagePrice

number

—

-

averagePriceExact

string

—

-

amount

number

—

-

amountExact

string

—

-

filled

number

—

-

filledExact

string

—

-

remaining

number

—

-

remainingExact

string

—

-

stopPrice

number

—

-

stopPriceExact

string

—

-

cost

number

—

-

costExact

string

—

-

fee_cost

number

—

-

feeCostExact

string

—

-

fee_currency

string

—

-

orderType

enum

—

-

feeCost

number

—

-

feeCurrency

string

—

-

_meta

string

—

-

lastUpdateTimestamp

number

—

-

average

number

—

-

accountType

enum

—

-

providerEnvironment

enum

—

-

Modification

Cancel All

Cancel All

Route: POST /mutation/cancelAllOrders

Entrees configurables
NameTypeRequiredDescription
accountTypeenumNoValues: spot, margin_cross, margin_isolated, future_usdm, future_coinm
confirmbooleanYes-
symbolenumNo-
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Get My Orders

List my open and closed orders

Utilise comme filtre par

Lecture

Get My Orders

List my open and closed orders

Route: GET /myOrders

Formule Excel: =LF.mexc.myOrders("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
symbolenumYesTrading symbol or market pair, e.g. BTC/USDT
statusenumNoopen, partially_filled, filled, canceled, expired or rejected Values: open, partially_filled, filled, canceled, expired
sideenumNoBuy or sell. Values: buy, sell
sincedateNoFetch data starting from this timestamp
untildateNoRead up to this date. ISO 8601 or an epoch in milliseconds.
limitnumberNoMaximum number of records to fetch
cursorstringNoOpaque cursor from a previous page. Pass it back verbatim; never build or edit one.
accountTypeenumNoWhich account: spot, margin_cross, margin_isolated, future_usdm or future_coinm. Default: spot Values: spot, margin_cross, margin_isolated, future_usdm, future_coinm
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

type

enum

—

-

status

enum

—

-

cancellable

boolean

—

-

id

id

—

-

providerOrderId

string

—

-

clientOrderId

string

—

-

datetime

date

—

-

timestamp

number

—

-

lastUpdateTimestamp

number

—

-

timeInForce

string

—

-

side

enum

—

-

price

number

—

-

priceExact

string

—

-

average

number

—

-

averagePrice

number

—

-

averagePriceExact

string

—

-

amount

number

—

-

amountExact

string

—

-

filled

number

—

-

filledExact

string

—

-

remaining

number

—

-

remainingExact

string

—

-

stopPrice

number

—

-

stopPriceExact

string

—

-

cost

number

—

-

costExact

string

—

-

fee_cost

number

—

-

feeCostExact

string

—

-

fee_currency

string

—

-

orderType

enum

—

-

feeCost

number

—

-

feeCurrency

string

—

-

_meta

string

—

-

accountType

enum

—

-

providerEnvironment

enum

—

-

Creation

Create Order

Create Order

Route: POST /mutation/postTrade

Entrees configurables
NameTypeRequiredDescription
accountTypeenumNoValues: spot, margin_cross, margin_isolated, future_usdm, future_coinm
amountstringNo-
idempotencyKeystringNo-
orderTypeenumYesValues: market, limit, stop_loss, stop_loss_limit, take_profit
previewTokenstringNo-
pricestringNo-
quoteAmountstringNo-
sideenumYesValues: buy, sell
stopPricestringNo-
symbolenumYes-
timeInForceenumNoValues: GTC, IOC, FOK
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Modification

Preview Order

Preview Order

Route: POST /mutation/previewTrade

Entrees configurables
NameTypeRequiredDescription
accountTypeenumNoValues: spot, margin_cross, margin_isolated, future_usdm, future_coinm
amountstringNo-
orderTypeenumYesValues: market, limit, stop_loss, stop_loss_limit, take_profit
pricestringNo-
quoteAmountstringNo-
sideenumYesValues: buy, sell
stopPricestringNo-
symbolenumYes-
timeInForceenumNoValues: GTC, IOC, FOK
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Modification

Cancel Order

Cancel Order

Route: POST /mutation/cancelOrder

Entrees configurables
NameTypeRequiredDescription
accountTypeenumNoValues: spot, margin_cross, margin_isolated, future_usdm, future_coinm
orderIdstringYes-
symbolenumYes-
Donnees retournees dans Excel

Cette action retourne une confirmation plutot qu une table selectionnable.

Get My Trades

Retrieve my trade history

Lecture

Get My Trades

Retrieve my trade history

Route: GET /myTrades

Formule Excel: =LF.mexc.myTrades("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
symbolenumYesTrading symbol or market pair, e.g. BTC/USDT
sideenumNoBuy or sell. Values: buy, sell
sincedateNoFetch data starting from this timestamp
untildateNoRead up to this date. ISO 8601 or an epoch in milliseconds.
limitnumberNoMaximum number of records to fetch
cursorstringNoOpaque cursor from a previous page. Pass it back verbatim; never build or edit one.
accountTypeenumNoWhich account: spot, margin_cross, margin_isolated, future_usdm or future_coinm. Default: spot Values: spot, margin_cross, margin_isolated, future_usdm, future_coinm
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

type

enum

—

-

id

id

—

-

datetime

date

—

-

timestamp

number

—

-

side

enum

—

-

price

number

—

-

amount

number

—

-

cost

number

—

-

order

id

→ myOrders

-

takerOrMaker

enum

—

-

fee_cost

number

—

-

fee_currency

string

—

-

fee_rate

number

—

-

fees

string

—

-

Get My Withdrawals

List my withdrawal history (read only — LinkyFlow never sends crypto out). Not every connection can serve it; the capability matrix says which can.

Lecture

Get My Withdrawals

List my withdrawal history (read only — LinkyFlow never sends crypto out). Not every connection can serve it; the capability matrix says which can.

Route: GET /myWithdrawals

Formule Excel: =LF.mexc.myWithdrawals("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
assetenumNoAsset symbol for deposits or withdrawals Default: USDT
sincedateNoFetch data starting from this timestamp
untildateNoRead up to this date. ISO 8601 or an epoch in milliseconds.
statusenumNoCurrent status of the order or transaction
networkstringNoChain of a deposit or withdrawal, e.g. TRC20.
txIdstringNoOn-chain transaction id to look up.
limitnumberNoMaximum number of records to fetch
cursorstringNoOpaque cursor from a previous page. Pass it back verbatim; never build or edit one.
Donnees retournees dans Excel
Field
Type
Relations
Description
type

enum

—

-

status

enum

—

-

providerData

string

—

-

id

id

—

-

datetime

date

—

-

timestamp

number

—

-

amount

number

—

-

txid

string

—

-

network

string

—

-

address

string

—

-

addressFrom

string

—

-

addressTo

string

—

-

tag

string

—

-

tagTo

string

—

-

currency

string

—

-

updated

number

—

-

comment

string

—

-

fee_cost

number

—

-

fee_currency

string

—

-

fee_rate

number

—

-

fees

string

—

-

Get OHLCV

Get historical candlestick (OHLCV) data for given symbols

Lecture

Get OHLCV

Get historical candlestick (OHLCV) data for given symbols

Route: GET /getOHLCV

Formule Excel: =LF.mexc.getOHLCV("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
symbolenumYesTrading symbol or market pair, e.g. BTC/USDT
timeframeenumNoGranularity of candlestick data Default: 1d Values: 1s, 1m, 3m, 5m, 15m
sincedateNoFetch data starting from this timestamp
untildateNoRead up to this date. ISO 8601 or an epoch in milliseconds.
limitnumberNoMaximum number of records to fetch
cursorstringNoOpaque cursor from a previous page. Pass it back verbatim; never build or edit one.
marketDataEnvironmentenumNoWhere the prices come from. Defaults to the selected connection's environment, so a testnet connection is never shown production prices with... Values: production, testnet, demo
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

openTime

number

—

-

open

number

—

-

high

number

—

-

low

number

—

-

close

number

—

-

volume

number

—

-

Get One Order

Read one order by its exchange id, with what it has actually filled so far.

Lecture

Get One Order

Read one order by its exchange id, with what it has actually filled so far.

Route: GET /myOrder

Formule Excel: =LF.mexc.myOrder("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
linkstringYes-
orderIdstringYesExchange order id, exactly as it was returned.
symbolenumYesTrading symbol or market pair, e.g. BTC/USDT
accountTypeenumNoWhich account: spot, margin_cross, margin_isolated, future_usdm or future_coinm. Default: spot Values: spot, margin_cross, margin_isolated, future_usdm, future_coinm
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

type

enum

—

-

status

enum

—

-

cancellable

boolean

—

-

id

id

—

-

providerOrderId

string

—

-

clientOrderId

string

—

-

datetime

date

—

-

timestamp

number

—

-

lastUpdateTimestamp

number

—

-

timeInForce

string

—

-

side

enum

—

-

price

number

—

-

priceExact

string

—

-

averagePrice

number

—

-

averagePriceExact

string

—

-

amount

number

—

-

amountExact

string

—

-

filled

number

—

-

filledExact

string

—

-

remaining

number

—

-

remainingExact

string

—

-

stopPrice

number

—

-

stopPriceExact

string

—

-

cost

number

—

-

costExact

string

—

-

fee_cost

number

—

-

feeCostExact

string

—

-

fee_currency

string

—

-

orderType

enum

—

-

feeCost

number

—

-

feeCurrency

string

—

-

_meta

string

—

-

average

number

—

-

accountType

enum

—

-

providerEnvironment

enum

—

-

Get Order Book

Fetch the current order book for a symbol. Asks come first, best (lowest) offer first, then bids, best (highest) first.

Lecture

Get Order Book

Fetch the current order book for a symbol. Asks come first, best (lowest) offer first, then bids, best (highest) first.

Route: GET /getOrderBook

Formule Excel: =LF.mexc.getOrderBook("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
symbolenumYesTrading symbol or market pair, e.g. BTC/USDT
depthnumberNoLevels per side. Default: 5
marketDataEnvironmentenumNoWhere the prices come from. Defaults to the selected connection's environment, so a testnet connection is never shown production prices with... Values: production, testnet, demo
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

type

enum

—

-

price

number

—

-

amount

number

—

-

Get Ticker 24h

Retrieve 24-hour rolling ticker statistics for given symbols

Lecture

Get Ticker 24h

Retrieve 24-hour rolling ticker statistics for given symbols

Route: GET /getTicker24h

Formule Excel: =LF.mexc.getTicker24h("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
symbolsenumYesList of trading symbols or market pairs, e.g. BTC/USDT, ETH/EUR
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

datetime

date

—

-

timestamp

number

—

-

average

number

—

-

open

number

—

-

high

number

—

-

low

number

—

-

bid

number

—

-

bidVolume

number

—

-

ask

number

—

-

askVolume

number

—

-

vwap

number

—

-

close

number

—

-

last

number

—

-

previousClose

number

—

-

change

number

—

-

percentage

number

—

-

quoteVolume

number

—

-

baseVolume

number

—

-

Get Trades

Retrieve recent trades for given symbols

Lecture

Get Trades

Retrieve recent trades for given symbols

Route: GET /getTrades

Formule Excel: =LF.mexc.getTrades("selection", "fields")

Entrees configurables
NameTypeRequiredDescription
symbolenumYesTrading symbol or market pair, e.g. BTC/USDT
sincedateNoFetch data starting from this timestamp
untildateNoRead up to this date. ISO 8601 or an epoch in milliseconds.
limitnumberNoMaximum number of records to fetch
cursorstringNoOpaque cursor from a previous page. Pass it back verbatim; never build or edit one.
marketDataEnvironmentenumNoWhere the prices come from. Defaults to the selected connection's environment, so a testnet connection is never shown production prices with... Values: production, testnet, demo
Donnees retournees dans Excel
Field
Type
Relations
Description
symbol

enum

—

-

id

id

—

-

datetime

date

—

-

timestamp

number

—

-

side

enum

—

-

price

number

—

-

amount

number

—

-

cost

number

—

-

takerOrMaker

enum

—

-