CCXT

coinmetro

coinmetro cryptocurrency exchange — CCXT unified API: methods, parameters and endpoints.

coinmetro

Kind: global class
Extends: Exchange

fetchCurrencies

fetches all available currencies on an exchange

Kind: instance method of coinmetro
Returns: object - an associative dictionary of currencies

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#d5876d43-a3fe-4479-8c58-24d0f044edfb

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchCurrencies (params?)

fetchMarkets

retrieves data on all markets for coinmetro

Kind: instance method of coinmetro
Returns: Array<object> - an array of objects representing market data

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#9fd18008-338e-4863-b07d-722878a46832

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchMarkets (params?)

fetchOHLCV

fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market

Kind: instance method of coinmetro
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#13cfb5bc-7bfb-4847-85e1-e0f35dfb3573

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch OHLCV data for
timeframestringYesthe length of time each candle represents
sinceintNotimestamp in ms of the earliest candle to fetch
limitintNothe maximum amount of candles to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNothe latest time in ms to fetch entries for
coinmetro.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchTrades

get the list of most recent trades for a particular symbol

Kind: instance method of coinmetro
Returns: Array<Trade> - a list of trade structures

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ee5d698-06da-4570-8c84-914185e05065

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum amount of trades to fetch (default 200, max 500)
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchTrades (symbol, since?, limit?, params?)

fetchMyTrades

fetch all trades made by the user

Kind: instance method of coinmetro
Returns: Array<Trade> - a list of trade structures

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#4d48ae69-8ee2-44d1-a268-71f84e557b7b

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNothe earliest time in ms to fetch trades for
limitintNothe maximum number of trades structures to retrieve (default 500, max 1000)
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchMyTrades (symbol, since?, limit?, params?)

fetchOrderBook

fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

Kind: instance method of coinmetro
Returns: object - A dictionary of order book structures indexed by market symbols

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#26ad80d7-8c46-41b5-9208-386f439a8b87

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
limitintNothe maximum amount of order book entries to return (default 100, max 200)
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchOrderBook (symbol, limit?, params?)

fetchTickers

fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market

Kind: instance method of coinmetro
Returns: object - a dictionary of ticker structures

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485

ParamTypeRequiredDescription
symbolsArray<string>Nounified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchTickers (symbols?, params?)

fetchBidsAsks

fetches the bid and ask price and volume for multiple markets

Kind: instance method of coinmetro
Returns: object - a dictionary of ticker structures

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485

ParamTypeRequiredDescription
symbolsArray<string>Nounified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchBidsAsks (symbols?, params?)

fetchBalance

query for balance and get the amount of funds available for trading or funds locked in orders

Kind: instance method of coinmetro
Returns: object - a balance structure

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#741a1dcc-7307-40d0-acca-28d003d1506a

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchBalance (params?)

fetchLedger

fetch the history of changes, actions done by the user or operations that altered the balance of the user

Kind: instance method of coinmetro
Returns: object - a ledger structure

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#4e7831f7-a0e7-4c3e-9336-1d0e5dcb15cf

ParamTypeRequiredDescription
codestringNounified currency code, default is undefined
sinceintNotimestamp in ms of the earliest ledger entry, default is undefined
limitintNomax number of ledger entries to return (default 200, max 500)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNothe latest time in ms to fetch entries for
coinmetro.fetchLedger (code?, since?, limit?, params?)

createOrder

create a trade order

Kind: instance method of coinmetro
Returns: object - an order structure

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#a4895a1d-3f50-40ae-8231-6962ef06c771

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYes'market' or 'limit'
sidestringYes'buy' or 'sell'
amountfloatYeshow much of currency you want to trade in units of base currency
pricefloatNothe price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.costfloatNothe quote quantity that can be used as an alternative for the amount in market orders
params.timeInForcestringNo"GTC", "IOC", "FOK", "GTD"
params.expirationTimenumberNotimestamp in millisecond, for GTD orders only
params.triggerPricefloatNothe price at which a trigger order is triggered at
params.stopLossPricefloatNomargin only The price at which a stop loss order is triggered at
params.takeProfitPricefloatNomargin only The price at which a take profit order is triggered at
params.marginboolNotrue for creating a margin order
params.fillStylestringNofill style of the limit order: "sell" fulfills selling quantity "buy" fulfills buying quantity "base" fulfills base currency quantity "quote" fulfills quote currency quantity
params.clientOrderIdstringNoclient's comment
coinmetro.createOrder (symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order

Kind: instance method of coinmetro
Returns: object - An order structure

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesnot used by coinmetro cancelOrder ()
paramsobjectNoextra parameters specific to the exchange API endpoint
params.marginstringNotrue for cancelling a margin order
coinmetro.cancelOrder (id, symbol, params?)

closePosition

closes an open position

Kind: instance method of coinmetro
Returns: object - An order structure

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#47f913fb-8cab-49f4-bc78-d980e6ced316

ParamTypeRequiredDescription
symbolstringYesnot used by coinmetro closePosition ()
sidestringNonot used by coinmetro closePosition ()
paramsobjectNoextra parameters specific to the exchange API endpoint
params.orderIDstringNoorder id
params.fractionnumberNofraction of order to close, between 0 and 1 (defaults to 1)
coinmetro.closePosition (symbol, side?, params?)

fetchOpenOrders

fetch all unfilled currently open orders

Kind: instance method of coinmetro
Returns: Array<Order> - a list of order structures

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#518afd7a-4338-439c-a651-d4fdaa964138

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNothe earliest time in ms to fetch open orders for
limitintNothe maximum number of open order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchOpenOrders (symbol, since?, limit?, params?)

fetchCanceledAndClosedOrders

fetches information on multiple canceled and closed orders made by the user

Kind: instance method of coinmetro
Returns: Array<Order> - a list of order structures

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#4d48ae69-8ee2-44d1-a268-71f84e557b7b

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchCanceledAndClosedOrders (symbol, since?, limit?, params?)

fetchOrder

fetches information on an order made by the user

Kind: instance method of coinmetro
Returns: object - An order structure

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#95bbed87-db1c-47a7-a03e-aa247e91d5a6

ParamTypeRequiredDescription
idint, stringYesorder id
symbolstringYesnot used by coinmetro fetchOrder ()
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.fetchOrder (id, symbol, params?)

borrowCrossMargin

create a loan to borrow margin

Kind: instance method of coinmetro
Returns: object - a margin loan structure

See: https://documenter.getpostman.com/view/3653795/SVfWN6KS#5b90b3b9-e5db-4d07-ac9d-d680a06fd110

ParamTypeRequiredDescription
codestringYesunified currency code of the currency to borrow
amountfloatYesthe amount to borrow
paramsobjectNoextra parameters specific to the exchange API endpoint
coinmetro.borrowCrossMargin (code, amount, params?)

On this page