CCXT

latoken

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

latoken

Kind: global class
Extends: Exchange

fetchTime

fetches the current integer timestamp in milliseconds from the exchange server

Kind: instance method of latoken
Returns: int - the current integer timestamp in milliseconds from the exchange server

See: https://api.latoken.com/doc/v2/#tag/Time/operation/currentTime

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
latoken.fetchTime (params?)

fetchMarkets

retrieves data on all markets for latoken

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

See: https://api.latoken.com/doc/v2/#tag/Pair/operation/getActivePairs

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

fetchCurrencies

fetches all available currencies on an exchange

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

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

fetchBalance

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

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

See: https://api.latoken.com/doc/v2/#tag/Account/operation/getBalancesByUser

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

fetchOrderBook

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

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

See: https://api.latoken.com/doc/v2/#tag/Order-Book/operation/getOrderBook

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

fetchTicker

fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market

Kind: instance method of latoken
Returns: object - a ticker structure

See: https://api.latoken.com/doc/v2/#tag/Ticker/operation/getTicker

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
latoken.fetchTicker (symbol, params?)

fetchTickers

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

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

See: https://api.latoken.com/doc/v2/#tag/Ticker/operation/getAllTickers

ParamTypeRequiredDescription
symbolsArray<string>, undefinedYesunified 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
latoken.fetchTickers (symbols, params?)

fetchTrades

get the list of most recent trades for a particular symbol

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

See: https://api.latoken.com/doc/v2/#tag/Trade/operation/getTradesByPair

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
paramsobjectNoextra parameters specific to the exchange API endpoint
latoken.fetchTrades (symbol, since?, limit?, params?)

fetchTradingFee

fetch the trading fees for a market

Kind: instance method of latoken
Returns: object - a fee structure

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
latoken.fetchTradingFee (symbol, params?)

fetchMyTrades

fetch all trades made by the user

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

See

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

fetchOpenOrders

fetch all unfilled currently open orders

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

See

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

fetchOrders

fetches information on multiple orders made by the user

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

See

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
params.triggerbooleanNotrue if fetching trigger orders
latoken.fetchOrders (symbol, since?, limit?, params?)

fetchOrder

fetches information on an order made by the user

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

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringNonot used by latoken fetchOrder
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerbooleanNotrue if fetching a trigger order
latoken.fetchOrder (id, symbol?, params?)

createOrder

create a trade order

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

See

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.triggerPricefloatNothe price at which a trigger order is triggered at EXCHANGE SPECIFIC PARAMETERS
params.conditionstringNo"GTC", "IOC", or "FOK"
params.clientOrderIdstringNo[ 0 .. 50 ] characters, client's custom order id (free field for your convenience)
latoken.createOrder (symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order

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

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesnot used by latoken cancelOrder ()
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerbooleanNotrue if cancelling a trigger order
latoken.cancelOrder (id, symbol, params?)

cancelAllOrders

cancel all open orders in a market

Kind: instance method of latoken
Returns: Array<object> - a list of order structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market to cancel orders in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerbooleanNotrue if cancelling trigger orders
latoken.cancelAllOrders (symbol, params?)

fetchTransactions

DEPRECATED

use fetchDepositsWithdrawals instead

Kind: instance method of latoken
Returns: object - a list of transaction structure

See: https://api.latoken.com/doc/v2/#tag/Transaction/operation/getUserTransactions

ParamTypeRequiredDescription
codestringYesunified currency code for the currency of the transactions, default is undefined
sinceintNotimestamp in ms of the earliest transaction, default is undefined
limitintNomax number of transactions to return, default is undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
latoken.fetchTransactions (code, since?, limit?, params?)

fetchTransfers

fetch a history of internal transfers made on an account

Kind: instance method of latoken
Returns: Array<object> - a list of transfer structures

See: https://api.latoken.com/doc/v2/#tag/Transfer/operation/getUsersTransfers

ParamTypeRequiredDescription
codestringYesunified currency code of the currency transferred
sinceintNothe earliest time in ms to fetch transfers for
limitintNothe maximum number of transfers structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
latoken.fetchTransfers (code, since?, limit?, params?)

transfer

transfer currency internally between wallets on the same account

Kind: instance method of latoken
Returns: object - a transfer structure

See

ParamTypeRequiredDescription
codestringYesunified currency code
amountfloatYesamount to transfer
fromAccountstringYesaccount to transfer from
toAccountstringYesaccount to transfer to
paramsobjectNoextra parameters specific to the exchange API endpoint
latoken.transfer (code, amount, fromAccount, toAccount, params?)

On this page