CCXT

coinbaseinternational

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

coinbaseinternational

Kind: global class
Extends: Exchange

fetchAccounts

fetch all the accounts associated with a profile

Kind: instance method of coinbaseinternational
Returns: object - a dictionary of account structures indexed by the account type

See: https://docs.cloud.coinbase.com/intx/reference/getportfolios

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
coinbaseinternational.fetchAccounts (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: https://docs.cdp.coinbase.com/intx/reference/getinstrumentcandles

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.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: https://docs.cloud.coinbase.com/intx/reference/getinstrumentfunding

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.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
coinbaseinternational.fetchFundingRateHistory (symbol, since?, limit?, params?)

fetchFundingHistory

fetch the history of funding payments paid and received on this account

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

See: https://docs.cdp.coinbase.com/intx/reference/gettransfers

ParamTypeRequiredDescription
symbolstringNounified market symbol
sinceintNothe earliest time in ms to fetch funding history for
limitintNothe maximum number of funding history structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
coinbaseinternational.fetchFundingHistory (symbol?, since?, limit?, 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: https://docs.cdp.coinbase.com/intx/reference/gettransfers

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
coinbaseinternational.fetchTransfers (code, since?, limit?, params?)

createDepositAddress

create a currency deposit address

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

See

ParamTypeRequiredDescription
codestringYesunified currency code of the currency for the deposit address
paramsobjectNoextra parameters specific to the exchange API endpoint
params.network_arn_idstringNoIdentifies the blockchain network (e.g., networks/ethereum-mainnet/assets/313ef8a9-ae5a-5f2f-8a56-572c0e2a4d5a) if not provided will pick default
params.networkstringNounified network code to identify the blockchain network
coinbaseinternational.createDepositAddress (code, params?)

setMargin

Either adds or reduces margin in order to set the margin to a specific value

Kind: instance method of coinbaseinternational
Returns: object - A margin structure

See: https://docs.cloud.coinbase.com/intx/reference/setportfoliomarginoverride

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market to set margin in
amountfloatYesthe amount to set the margin to
paramsobjectNoparameters specific to the exchange API endpoint
coinbaseinternational.setMargin (symbol, amount, params?)

fetchPosition

fetch data on an open position

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

See: https://docs.cloud.coinbase.com/intx/reference/getportfolioposition

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market the position is held in
paramsobjectNoextra parameters specific to the exchange API endpoint
coinbaseinternational.fetchPosition (symbol, params?)

fetchPositions

fetch all open positions

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

See: https://docs.cloud.coinbase.com/intx/reference/getportfoliopositions

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
coinbaseinternational.fetchPositions (symbols?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

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

See: https://docs.cloud.coinbase.com/intx/reference/gettransfers

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.portfoliosstringNoIdentifies the portfolios by UUID (e.g., 892e8c7c-e979-4cad-b61b-55a197932cf1) or portfolio ID (e.g., 5189861793641175). Can provide single or multiple portfolios to filter by or fetches transfers for all portfolios if none are provided.
params.untilintNoOnly find transfers updated before this time. Use timestamp format
params.statusstringNoThe current status of transfer. Possible values: [PROCESSED, NEW, FAILED, STARTED]
params.typestringNoThe type of transfer Possible values: [DEPOSIT, WITHDRAW, REBATE, STIPEND, INTERNAL, FUNDING]
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
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

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.portfoliosstringNoIdentifies the portfolios by UUID (e.g., 892e8c7c-e979-4cad-b61b-55a197932cf1) or portfolio ID (e.g., 5189861793641175). Can provide single or multiple portfolios to filter by or fetches transfers for all portfolios if none are provided.
params.untilintNoOnly find transfers updated before this time. Use timestamp format
params.statusstringNoThe current status of transfer. Possible values: [PROCESSED, NEW, FAILED, STARTED]
params.typestringNoThe type of transfer Possible values: [DEPOSIT, WITHDRAW, REBATE, STIPEND, INTERNAL, FUNDING]
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
coinbaseinternational.fetchDeposits (code, since?, limit?, 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: https://docs.cloud.coinbase.com/intx/reference/getinstruments

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

fetchCurrencies

fetches all available currencies on an exchange

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

See: https://docs.cloud.coinbase.com/intx/reference/getassets

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
coinbaseinternational.fetchCurrencies (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: https://docs.cloud.coinbase.com/intx/reference/getinstruments

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
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: https://docs.cloud.coinbase.com/intx/reference/getinstrumentquote

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
coinbaseinternational.fetchTicker (symbol, 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: https://docs.cloud.coinbase.com/intx/reference/getportfoliobalances

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.v3booleanNodefault false, set true to use v3 api endpoint
coinbaseinternational.fetchBalance (params?)

transfer

Transfer an amount of asset from one portfolio to another.

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

See: https://docs.cloud.coinbase.com/intx/reference/createportfolioassettransfer

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

createOrder

create a trade order

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

See: https://docs.cloud.coinbase.com/intx/reference/createorder

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYes'market' or 'limit'
sidestringYes'buy' or 'sell'
amountfloatYeshow much you want to trade in units of the base currency, quote currency for 'market' 'buy' orders
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.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: https://docs.cloud.coinbase.com/intx/reference/cancelorder

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesnot used by coinbaseinternational cancelOrder()
paramsobjectNoextra parameters specific to the exchange API endpoint
coinbaseinternational.cancelOrder (id, symbol, params?)

cancelAllOrders

cancel all open orders

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

ParamTypeRequiredDescription
symbolstringYesunified 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
coinbaseinternational.cancelAllOrders (symbol, params?)

editOrder

edit a trade order

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

See: https://docs.cloud.coinbase.com/intx/reference/modifyorder

ParamTypeRequiredDescription
idstringYescancel order id
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.clientOrderIdstringYesclient order id
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: https://docs.cloud.coinbase.com/intx/reference/modifyorder

ParamTypeRequiredDescription
idstringYesthe order id
symbolstringYesunified market symbol that the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
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: https://docs.cloud.coinbase.com/intx/reference/getorders

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.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
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: https://docs.cloud.coinbase.com/intx/reference/getmultiportfoliofills

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.untilintNothe latest time in ms to fetch trades for
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
coinbaseinternational.fetchMyTrades (symbol, since?, limit?, params?)

withdraw

make a withdrawal

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

See

ParamTypeRequiredDescription
codestringYesunified currency code
amountfloatYesthe amount to withdraw
addressstringYesthe address to withdraw to
tagstringNoan optional tag for the withdrawal
paramsobjectNoextra parameters specific to the exchange API endpoint
params.add_network_fee_to_totalbooleanNoif true, deducts network fee from the portfolio, otherwise deduct fee from the withdrawal
params.network_arn_idstringNoIdentifies the blockchain network (e.g., networks/ethereum-mainnet/assets/313ef8a9-ae5a-5f2f-8a56-572c0e2a4d5a)
params.noncestringNoa unique integer representing the withdrawal request
coinbaseinternational.withdraw (code, amount, address, tag?, params?)

On this page