CCXT
revolutx

revolutx

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

🔌 Looking for raw exchange endpoints? See the revolutx implicit API — every endpoint in this exchange's API exposed as an implicit method.

revolutx

Kind: global class
Extends: Exchange

fetchMarkets

retrieves all available markets on the exchange

Kind: instance method of revolutx
Returns: Array<object> - an array of market structures

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-public-market-data

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.regionstringNothe region to filter markets by (e.g. EEA, UK)
revolutx.fetchMarkets (params?)

fetchCurrencies

fetches all available currencies on the exchange

Kind: instance method of revolutx
Returns: object - a dictionary of currency structures

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-public-market-data

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.regionstringNothe region to filter currencies by
revolutx.fetchCurrencies (params?)

fetchTickers

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

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

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-public-market-data

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
params.regionstringNothe region to fetch tickers for (e.g. EEA, UK)
revolutx.fetchTickers (symbols, params?)

fetchTicker

fetches a price ticker for a given market symbol

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

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-public-market-data

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

fetchOrderBook

fetches the current order book snapshot for a given market symbol

Kind: instance method of revolutx
Returns: object - an order book structure

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-public-market-data

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
limitintNothe maximum number of orders to return (1-50, default 50)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.regionstringNothe region to fetch the order book for
revolutx.fetchOrderBook (symbol, limit?, params?)

fetchOHLCV

fetches historical candlestick data for a given market symbol

Kind: instance method of revolutx
Returns: Array<Array<int>> - a list of OHLCV structures

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-public-market-data

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch OHLCV data for
timeframestringYesthe length of time each candle represents (e.g. 1m, 5m, 1h, 1d)
sinceintNotimestamp in ms of the earliest candle to fetch
limitintNothe maximum number of candles to return
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms of the latest candle to fetch
params.regionstringNothe region to fetch candles for
revolutx.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchTrades

fetches the public trade history for a given market symbol

Kind: instance method of revolutx
Returns: Array<object> - a list of trade structures

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-public-market-data

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum number of trades to return (1-1900, default 1900)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms of the latest trade to fetch
params.cursorstringNopagination cursor from the previous response
revolutx.fetchTrades (symbol, since?, limit?, params?)

fetchBalance

fetches the current balance for the authenticated user

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

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-account-data

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

createOrder

create a trade order

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

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-trading

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYes'limit' or 'market'
sidestringYes'buy' or 'sell'
amountfloatYeshow much of the base currency you want to trade
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.clientOrderIdstringNoa custom client order id (UUID)
params.costfloatNothe order cost in units of the quote currency (alternative to amount)
params.timeInForcestringNo'gtc' or 'ioc' for limit orders
params.executionInstructionsArray<string>Nolimit order instructions, e.g. ['post_only'] or ['allow_taker']
revolutx.createOrder (symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order by its id

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

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-trading

ParamTypeRequiredDescription
idstringYesthe order id (venue order id)
symbolstringYesnot used by this exchange
paramsobjectNoextra parameters specific to the exchange API endpoint
revolutx.cancelOrder (id, symbol, params?)

cancelAllOrders

cancels all open orders

Kind: instance method of revolutx
Returns: object - an empty order structure

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-trading

ParamTypeRequiredDescription
symbolstringNonot used by this exchange
paramsobjectNoextra parameters specific to the exchange API endpoint
revolutx.cancelAllOrders (symbol?, params?)

fetchOrder

fetches an order by its id

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

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-account-data

ParamTypeRequiredDescription
idstringYesthe order id (venue order id)
symbolstringYesunified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
revolutx.fetchOrder (id, symbol, params?)

fetchOpenOrders

fetches all open orders for the authenticated user

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

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-account-data

ParamTypeRequiredDescription
symbolstring, undefinedYesunified symbol of the market to fetch open orders for
sinceintNotimestamp in ms of the earliest order to fetch
limitintNothe maximum number of orders to return (1-300, default 300)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.cursorstringNopagination cursor from the previous response
params.orderStatesArray<string>Nofilter by order states, e.g. ['new', 'partially_filled']
params.orderTypesArray<string>Nofilter by order types, e.g. ['limit', 'market']
params.sidestringNofilter by side, 'buy' or 'sell'
revolutx.fetchOpenOrders (symbol, since?, limit?, params?)

fetchOrders

fetches historical orders for the authenticated user

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

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-account-data

ParamTypeRequiredDescription
symbolstring, undefinedYesunified symbol of the market to fetch orders for
sinceintNotimestamp in ms of the earliest order to fetch, the lookup window is limited to 30 days
limitintNothe maximum number of orders to return (1-1900, default 1900)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms of the latest order to fetch
params.cursorstringNopagination cursor from the previous response
params.orderStatesArray<string>Nofilter by order states, e.g. ['filled', 'cancelled', 'rejected']
params.orderTypesArray<string>Nofilter by order types, e.g. ['limit', 'market']
revolutx.fetchOrders (symbol, since?, limit?, params?)

fetchClosedOrders

fetches closed (filled, cancelled, rejected) orders for the authenticated user

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

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-account-data

ParamTypeRequiredDescription
symbolstring, undefinedYesunified symbol of the market to fetch orders for
sinceintNotimestamp in ms of the earliest order to fetch, the lookup window is limited to 30 days
limitintNothe maximum number of orders to return
paramsobjectNoextra parameters specific to the exchange API endpoint
revolutx.fetchClosedOrders (symbol, since?, limit?, params?)

fetchMyTrades

fetches the trade history for the authenticated user

Kind: instance method of revolutx
Returns: Array<object> - a list of trade structures

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-account-data

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch, the lookup window is limited to 30 days
limitintNothe maximum number of trades to return (1-1900, default 1900)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms of the latest trade to fetch
params.cursorstringNopagination cursor from the previous response
revolutx.fetchMyTrades (symbol, since?, limit?, params?)

editOrder

replaces an existing order

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

See: https://developer.revolut.com/docs/api/revolut-x-crypto-exchange#tag-trading

ParamTypeRequiredDescription
idstringYesthe order id (venue order id) to replace
symbolstringYesunified symbol of the market
typestringYes'limit' or 'market'
sidestringYes'buy' or 'sell'
amountfloatYesthe new amount
pricefloatNothe new price
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdstringNoa custom client order id (UUID)
params.costfloatNothe new order cost in units of the quote currency
params.timeInForcestringNoe.g. gtc
params.executionInstructionsArray<string>Noe.g. ['post_only']
revolutx.editOrder (id, symbol, type, side, amount, price?, params?)

On this page