CCXT
coinbaseinternational

coinbaseinternational

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

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

coinbaseinternational

Kind: global class
Extends: Exchange

fetchTime

fetches the current integer timestamp in milliseconds from the exchange server

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

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchTime (params?)

fetchMarkets

retrieves data on all markets for coinbaseinternational

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

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.currencystringNosettlement currency filter, defaults to any on Deribit
coinbaseinternational.fetchMarkets (params?)

fetchCurrencies

fetches all available currencies on an exchange

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

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchCurrencies (params?)

fetchOHLCV

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

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

See

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, default 100 max 10000
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.untilintNotimestamp in ms of the latest candle to fetch
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
coinbaseinternational.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchFundingRateHistory

fetches historical funding rate prices

Kind: instance method of coinbaseinternational
Returns: Array<object> - a list of funding rate structures

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the funding rate history for
sinceintNotimestamp in ms of the earliest funding rate to fetch
limitintNothe maximum amount of funding rate structures to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.untilintNotimestamp in ms of the latest funding rate
params.paginatebooleanNonative Deribit automatic pagination is not supported
coinbaseinternational.fetchFundingRateHistory (symbol, since?, limit?, params?)

fetchTickers

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

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

See

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.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchTickers (symbols, 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 coinbaseinternational
Returns: object - a ticker structure

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchTicker (symbol, params?)

fetchOrderBook

fetches a market order book

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

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
limitintNothe maximum number of bids and asks to return
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchOrderBook (symbol, limit?, params?)

fetchBalance

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

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

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.codestringNounified currency code for a native Deribit single account summary
coinbaseinternational.fetchBalance (params?)

fetchTransfers

fetch a history of internal transfers made on an account

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

See

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
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.untilintNotimestamp in ms of the latest transfer to fetch
params.continuationstringNocontinuation token for pagination
coinbaseinternational.fetchTransfers (code, since?, limit?, params?)

fetchPosition

fetch data on an open position

Kind: instance method of coinbaseinternational
Returns: object - a position structure

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market the position is held in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchPosition (symbol, params?)

fetchPositions

fetch all open positions

Kind: instance method of coinbaseinternational
Returns: Array<object> - a list of position structure

See

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.currencystringNosettlement currency filter
params.kindstringNoinstrument kind filter
coinbaseinternational.fetchPositions (symbols?, params?)

fetchDepositsWithdrawals

fetch history of deposits and withdrawals

Kind: instance method of coinbaseinternational
Returns: Array<object> - a list of transaction structures

See

ParamTypeRequiredDescription
codestringYesunified currency code
sinceintNotimestamp in ms of the earliest transaction to fetch
limitintNothe maximum number of transactions to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.untilintNotimestamp in ms of the latest transaction to fetch
params.querystringNotransaction-log query filter
params.continuationstringNocontinuation token for pagination
coinbaseinternational.fetchDepositsWithdrawals (code, since?, limit?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

Kind: instance method of coinbaseinternational
Returns: Array<object> - a list of transaction structures

See

ParamTypeRequiredDescription
codestringYesunified currency code
sinceintNothe earliest time in ms to fetch withdrawals for
limitintNothe maximum number of withdrawals structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.untilintNotimestamp in ms of the latest transaction to fetch
params.continuationstringNocontinuation token for pagination
coinbaseinternational.fetchWithdrawals (code, since?, limit?, params?)

fetchDeposits

fetch all deposits made to an account

Kind: instance method of coinbaseinternational
Returns: Array<object> - a list of transaction structures

See

ParamTypeRequiredDescription
codestringYesunified currency code
sinceintNothe earliest time in ms to fetch deposits for
limitintNothe maximum number of deposits structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.untilintNotimestamp in ms of the latest transaction to fetch
params.continuationstringNocontinuation token for pagination
coinbaseinternational.fetchDeposits (code, since?, limit?, params?)

createOrder

create a trade order

Kind: instance method of coinbaseinternational
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'
amountfloatYesnumber of contracts for native Deribit derivatives, otherwise the exchange order amount (base currency for spot)
pricefloatNothe price to fulfill the order, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.stopPricefloatNoalias for triggerPrice
params.triggerPricefloatNoprice to trigger stop orders
params.stopLossPricefloatNoprice to trigger stop-loss orders
params.postOnlyboolNotrue or false
params.tifstringNo'GTC', 'IOC', 'GTD' default is 'GTC' for limit orders and 'IOC' for market orders
params.expire_timestringNoThe expiration time required for orders with the time in force set to GTT. Must not go beyond 30 days of the current time. Uses ISO-8601 format (e.g., 2023-03-16T23:59:53Z)
params.stp_modestringNoPossible values: [NONE, AGGRESSING, BOTH] Specifies the behavior for self match handling. None disables the functionality, new cancels the newest order, and both cancels both orders.
coinbaseinternational.createOrder (symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order

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

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesnot used by cancelOrder()
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.cancelOrder (id, symbol, params?)

cancelAllOrders

cancel all open orders

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

See

ParamTypeRequiredDescription
symbolstringNounified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.cancelAllOrders (symbol?, params?)

editOrder

edit a trade order

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

See

ParamTypeRequiredDescription
idstringYescancel order id
symbolstringYesunified symbol of the market to create an order in
typestringYes'market' or 'limit'
sidestringYes'buy' or 'sell'
amountfloatYesnumber of contracts for native Deribit derivatives, otherwise the exchange order amount (base currency for spot)
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.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.triggerPricefloatNoprice to trigger stop orders
coinbaseinternational.editOrder (id, symbol, type, side, amount, price?, params?)

fetchOrder

fetches information on an order made by the user

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

See

ParamTypeRequiredDescription
idstringYesthe order id
symbolstringYesunified market symbol that the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchOrder (id, symbol, params?)

fetchOpenOrders

fetches information on all currently open orders

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

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the orders
sinceintNotimestamp in ms of the earliest order, default is undefined
limitintNothe maximum number of open order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.paginatebooleanNonative Deribit pagination is not supported
params.offsetintNooffset
params.event_typestringNoThe most recent type of event that happened to the order. Allowed values: NEW, TRADE, REPLACED
coinbaseinternational.fetchOpenOrders (symbol, since?, limit?, params?)

fetchMyTrades

fetch all trades made by the user

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

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the trades
sinceintNotimestamp in ms of the earliest order, default is undefined
limitintNothe maximum number of trade structures to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.historicalbooleanNonative Deribit indexed history, excludes recent trades
params.untilintNonative Deribit latest time in ms to fetch trades for
params.paginatebooleanNonative Deribit automatic pagination is not supported
coinbaseinternational.fetchMyTrades (symbol, since?, limit?, params?)

fetchLeverage

fetch the set leverage for a market

Kind: instance method of coinbaseinternational
Returns: object - a leverage structure

See: https://docs.cdp.coinbase.com/api-reference/account-management/private-get_leverage

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route; native route throws NotSupported; get_leverage is gateway-only
params.isolatedbooleanNoset to true for isolated margin
params.subaccount_idintNoThe user id for the subaccount, available to retail broker callers, defaults to the authenticated account
coinbaseinternational.fetchLeverage (symbol, params?)

setLeverage

set the level of leverage for a market

Kind: instance method of coinbaseinternational
Returns: object - response from the exchange

See: https://docs.cdp.coinbase.com/api-reference/trading/private-set_leverage

ParamTypeRequiredDescription
leverageintYesthe rate of leverage
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route; native route throws NotSupported; set_leverage is gateway-only
params.isolatedbooleanNoset to true for isolated margin
params.subaccount_idintNoThe user id for the subaccount, available to retail broker callers, defaults to the authenticated account
coinbaseinternational.setLeverage (leverage, symbol, params?)

watchBalance

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

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

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.currencystringNocurrency code to watch, default is any
coinbaseinternational.watchBalance (params?)

watchMyTrades

watches trades associated with the user

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

See

ParamTypeRequiredDescription
symbolstringNounified market symbol
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum amount of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.intervalstringNonotification interval, default raw
coinbaseinternational.watchMyTrades (symbol?, since?, limit?, params?)

unWatchMyTrades

stops watching user trades

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolstringNounified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchMyTrades (symbol?, params?)

watchOrders

watches information on orders made by the user

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

See

ParamTypeRequiredDescription
symbolstringNounified market symbol
sinceintNotimestamp in ms of the earliest order to fetch
limitintNothe maximum number of orders to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.intervalstringNonotification interval, default raw
coinbaseinternational.watchOrders (symbol?, since?, limit?, params?)

watchOrdersForSymbols

watches information on orders made by the user for multiple symbols

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

See

ParamTypeRequiredDescription
symbolsArray<string>Yesunified market symbols
sinceintNotimestamp in ms of the earliest order to fetch
limitintNothe maximum number of orders to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.watchOrdersForSymbols (symbols, since?, limit?, params?)

unWatchOrders

stops watching user orders

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolstringNounified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchOrders (symbol?, params?)

watchPositions

watches all open positions

Kind: instance method of coinbaseinternational
Returns: Array<object> - a list of position structures

See

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols
sinceintNotimestamp in ms of the earliest position to fetch
limitintNothe maximum number of positions to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.intervalstringNonotification interval, default raw
coinbaseinternational.watchPositions (symbols?, since?, limit?, params?)

unWatchPositions

stops watching open positions

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolsArray<string>Nounified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchPositions (symbols?, params?)

watchFundingRate

watch the current funding rate

Kind: instance method of coinbaseinternational
Returns: object - a funding rate structure

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.watchFundingRate (symbol, params?)

watchFundingRates

watch the funding rate for multiple markets

Kind: instance method of coinbaseinternational
Returns: object - a dictionary of funding rates structures, indexe by market symbols

See

ParamTypeRequiredDescription
symbolsArray<string>Yesa list of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.watchFundingRates (symbols, params?)

unWatchFundingRate

stops watching the funding rate for a symbol

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchFundingRate (symbol, params?)

unWatchFundingRates

stops watching funding rates for multiple symbols

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolsArray<string>Nounified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchFundingRates (symbols?, params?)

watchTicker

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

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

See

ParamTypeRequiredDescription
symbolstringNounified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.intervalstringNonotification interval, default 100ms
coinbaseinternational.watchTicker (symbol?, params?)

unWatchTicker

stops watching a ticker

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchTicker (symbol, params?)

watchTickers

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

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

See

ParamTypeRequiredDescription
symbolsArray<string>Nounified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.intervalstringNonotification interval, default 100ms
coinbaseinternational.watchTickers (symbols?, params?)

unWatchTickers

stops watching tickers

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolsArray<string>Nounified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchTickers (symbols?, params?)

watchMarkPrice

watches a mark price for a specific market

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

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.intervalstringNonotification interval, default 100ms
coinbaseinternational.watchMarkPrice (symbol, params?)

watchMarkPrices

watches the mark price for multiple markets

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

See

ParamTypeRequiredDescription
symbolsArray<string>Yesunified symbols of the markets to watch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
params.intervalstringNonotification interval, default 100ms
coinbaseinternational.watchMarkPrices (symbols, params?)

unWatchMarkPrice

stops watching the mark price for a symbol

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchMarkPrice (symbol, params?)

unWatchMarkPrices

stops watching mark prices for multiple symbols

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolsArray<string>Nounified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchMarkPrices (symbols?, params?)

watchBidsAsks

watches best bid & ask for symbols

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

See

ParamTypeRequiredDescription
symbolsArray<string>Nounified symbols of the markets to watch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.watchBidsAsks (symbols?, params?)

unWatchBidsAsks

stops watching best bid & ask for symbols

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolsArray<string>Nounified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchBidsAsks (symbols?, params?)

watchOHLCV

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

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

See

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.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.watchOHLCV (symbol, timeframe, since?, limit?, params?)

watchOHLCVForSymbols

watches historical candlestick data for multiple markets and timeframes

Kind: instance method of coinbaseinternational
Returns: object - a dictionary of OHLCV arrays indexed by symbol and timeframe

See

ParamTypeRequiredDescription
symbolsAndTimeframesArray<Array<string>>Yesarray of arrays containing unified symbols and timeframes
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.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.watchOHLCVForSymbols (symbolsAndTimeframes, since?, limit?, params?)

unWatchOHLCV

stops watching OHLCV data for a symbol

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
timeframestringYesthe length of time each candle represents
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchOHLCV (symbol, timeframe, params?)

unWatchOHLCVForSymbols

stops watching OHLCV data for multiple symbols and timeframes

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolsAndTimeframesArray<Array<string>>Yesarray of arrays containing unified symbols and timeframes
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchOHLCVForSymbols (symbolsAndTimeframes, params?)

watchTrades

get the list of most recent trades for a particular symbol

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

See

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
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.watchTrades (symbol, since?, limit?, params?)

watchTradesForSymbols

get the list of most recent trades for a list of symbols

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

See

ParamTypeRequiredDescription
symbolsArray<string>Yesunified 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
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.watchTradesForSymbols (symbols, since?, limit?, params?)

unWatchTrades

stops watching trades for a symbol

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchTrades (symbol, params?)

unWatchTradesForSymbols

stops watching trades for multiple symbols

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolsArray<string>Yesunified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchTradesForSymbols (symbols, params?)

watchOrderBook

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

Kind: instance method of coinbaseinternational
Returns: object - A dictionary of order book structures

See

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
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.watchOrderBook (symbol, limit?, params?)

watchOrderBookForSymbols

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

Kind: instance method of coinbaseinternational
Returns: object - A dictionary of order book structures

See

ParamTypeRequiredDescription
symbolsArray<string>Yes
limitintNothe maximum amount of order book entries to return
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.watchOrderBookForSymbols (symbols, limit?, params?)

unWatchOrderBook

stops watching an order book

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchOrderBook (symbol, params?)

unWatchOrderBookForSymbols

stops watching order books for multiple symbols

Kind: instance method of coinbaseinternational
Returns: object - the exchange response

See

ParamTypeRequiredDescription
symbolsArray<string>Yesunified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.unWatchOrderBookForSymbols (symbols, params?)

createOrderWs

create a trade order over websocket

Kind: instance method of coinbaseinternational
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'
amountfloatYesnumber of contracts for native Deribit derivatives, otherwise the exchange order amount (base currency for spot)
pricefloatNothe price at which the order is to be fulfilled
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.createOrderWs (symbol, type, side, amount, price?, params?)

editOrderWs

edit a trade order over websocket

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

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified market symbol
typestringYesnot used by coinbaseinternational editOrderWs
sidestringYesnot used by coinbaseinternational editOrderWs
amountfloatNonew order amount, in contracts for native Deribit derivatives
pricefloatNonew order price
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.editOrderWs (id, symbol, type, side, amount?, price?, params?)

cancelOrderWs

cancels an open order over websocket

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

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringNounified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.cancelOrderWs (id, symbol?, params?)

cancelAllOrdersWs

cancels all open orders over websocket

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

See

ParamTypeRequiredDescription
symbolstringNounified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.cancelAllOrdersWs (symbol?, params?)

fetchOrderWs

fetches an order over websocket

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

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringNounified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchOrderWs (id, symbol?, params?)

fetchOpenOrdersWs

fetches open orders over websocket

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

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNotimestamp in ms of the earliest order
limitintNothe maximum number of orders to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchOpenOrdersWs (symbol, since?, limit?, params?)

fetchOrdersWs

fetches order history over websocket

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

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNotimestamp in ms of the earliest order
limitintNothe maximum number of orders to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchOrdersWs (symbol, since?, limit?, params?)

fetchBalanceWs

fetches the balance over websocket

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

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchBalanceWs (params?)

fetchMyTradesWs

fetches user trades over websocket

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

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNotimestamp in ms of the earliest trade
limitintNothe maximum number of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchMyTradesWs (symbol, since?, limit?, params?)

fetchPositionsWs

fetches open positions over websocket

Kind: instance method of coinbaseinternational
Returns: Array<object> - a list of position structures

See

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.routestringNoauto (default), deribit, or coinbase; overrides options.route
coinbaseinternational.fetchPositionsWs (symbols?, params?)

On this page