CCXT

bitstamp

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

bitstamp

Kind: global class
Extends: Exchange

fetchMarkets

retrieves data on all markets for bitstamp

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

See: https://www.bitstamp.net/api/#tag/Market-info/operation/GetTradingPairsInfo

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

fetchCurrencies

fetches all available currencies on an exchange

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

See: https://www.bitstamp.net/api/#tag/Market-info/operation/GetTradingPairsInfo

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

fetchOrderBook

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

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

See: https://www.bitstamp.net/api/#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
bitstamp.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 bitstamp
Returns: object - a ticker structure

See: https://www.bitstamp.net/api/#tag/Tickers/operation/GetMarketTicker

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
bitstamp.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 bitstamp
Returns: object - a dictionary of ticker structures

See: https://www.bitstamp.net/api/#tag/Tickers/operation/GetCurrencyPairTickers

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
bitstamp.fetchTickers (symbols, params?)

fetchTrades

get the list of most recent trades for a particular symbol

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

See: https://www.bitstamp.net/api/#tag/Transactions-public/operation/GetTransactions

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
bitstamp.fetchTrades (symbol, since?, limit?, params?)

fetchOHLCV

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

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

See: https://www.bitstamp.net/api/#tag/Market-info/operation/GetOHLCData

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
bitstamp.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchBalance

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

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

See: https://www.bitstamp.net/api/#tag/Account-balances/operation/GetAccountBalances

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

fetchTradingFee

fetch the trading fees for a market

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

See: https://www.bitstamp.net/api/#tag/Fees/operation/GetTradingFeesForCurrency

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

fetchTradingFees

fetch the trading fees for multiple markets

Kind: instance method of bitstamp
Returns: object - a dictionary of fee structures indexed by market symbols

See: https://www.bitstamp.net/api/#tag/Fees/operation/GetAllTradingFees

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
bitstamp.fetchTradingFees (params?)

fetchTransactionFees

DEPRECATED

please use fetchDepositWithdrawFees instead

Kind: instance method of bitstamp
Returns: Array<object> - a list of fee structures

See: https://www.bitstamp.net/api/#tag/Fees

ParamTypeRequiredDescription
codesArray<string>, undefinedYeslist of unified currency codes
paramsobjectNoextra parameters specific to the exchange API endpoint
bitstamp.fetchTransactionFees (codes, params?)

fetchDepositWithdrawFees

fetch deposit and withdraw fees

Kind: instance method of bitstamp
Returns: Array<object> - a list of fee structures

See: https://www.bitstamp.net/api/#tag/Fees/operation/GetAllWithdrawalFees

ParamTypeRequiredDescription
codesArray<string>, undefinedYeslist of unified currency codes
paramsobjectNoextra parameters specific to the exchange API endpoint
bitstamp.fetchDepositWithdrawFees (codes, params?)

createOrder

create a trade order

Kind: instance method of bitstamp
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
bitstamp.createOrder (symbol, type, side, amount, price?, params?)

editOrder

edit a trade order

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

See: https://www.bitstamp.net/api/#tag/Orders/operation/ReplaceOrder

ParamTypeRequiredDescription
idstringYesorder id
symbolstringNounified symbol of the market to create an order in
typestringNo'market', 'limit' or 'stop_limit'
sidestringNo'buy' or 'sell'
amountfloatNohow much of the currency you want to trade in units of the base currency
pricefloatNothe price for the order, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerPricestringNothe price to trigger a stop order
params.timeInForcestringNofor crypto trading either 'gtc' or 'ioc' can be used
params.clientOrderIdstringNoa unique identifier for the order, automatically generated if not sent
bitstamp.editOrder (id, symbol?, type?, side?, amount?, price?, params?)

cancelOrder

cancels an open order

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

See: https://www.bitstamp.net/api/#tag/Orders/operation/CancelOrder

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
bitstamp.cancelOrder (id, symbol, params?)

cancelAllOrders

cancel all open orders

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

See

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

fetchOrder

fetches information on an order made by the user

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

See: https://www.bitstamp.net/api/#tag/Orders/operation/GetOrderStatus

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

fetchMyTrades

fetch all trades made by the user

Kind: instance method of bitstamp
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
bitstamp.fetchMyTrades (symbol, since?, limit?, params?)

fetchFundingRateHistory

fetches historical funding rate prices

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

See: https://www.bitstamp.net/api/#tag/Market-info/operation/GetFundingRateHistory

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.untilintNotimestamp in ms of the latest funding rate
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
params.subTypestringNo"linear" or "inverse"
bitstamp.fetchFundingRateHistory (symbol, since?, limit?, params?)

fetchDepositsWithdrawals

fetch history of deposits and withdrawals

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

See: https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions

ParamTypeRequiredDescription
codestringNounified currency code for the currency of the deposit/withdrawals, default is undefined
sinceintNotimestamp in ms of the earliest deposit/withdrawal, default is undefined
limitintNomax number of deposit/withdrawals to return, default is undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
bitstamp.fetchDepositsWithdrawals (code?, since?, limit?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

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

See: https://www.bitstamp.net/api/#tag/Withdrawals/operation/GetWithdrawalRequests

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
bitstamp.fetchWithdrawals (code, since?, limit?, 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 bitstamp
Returns: object - a ledger structure

See: https://www.bitstamp.net/api/#tag/Transactions-private/operation/GetUserTransactions

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 is undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
bitstamp.fetchLedger (code?, since?, limit?, params?)

fetchFundingRate

fetch the current funding rate

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

See: https://www.bitstamp.net/api/#tag/Market-info/operation/GetFundingRate

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

fetchOpenOrders

fetch all unfilled currently open orders

Kind: instance method of bitstamp
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
bitstamp.fetchOpenOrders (symbol, since?, limit?, params?)

fetchDepositAddress

fetch the deposit address for a currency associated with this account

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

See: https://www.bitstamp.net/api/#tag/Deposits/operation/GetCryptoDepositAddress

ParamTypeRequiredDescription
codestringYesunified currency code
paramsobjectNoextra parameters specific to the exchange API endpoint
bitstamp.fetchDepositAddress (code, params?)

withdraw

make a withdrawal

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

See

ParamTypeRequiredDescription
codestringYesunified currency code
amountfloatYesthe amount to withdraw
addressstringYesthe address to withdraw to
tagstringYes
paramsobjectNoextra parameters specific to the exchange API endpoint
bitstamp.withdraw (code, amount, address, tag, params?)

transfer

transfer currency internally between wallets on the same account

Kind: instance method of bitstamp
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
bitstamp.transfer (code, amount, fromAccount, toAccount, params?)

watchOrderBook

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

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

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
bitstamp.watchOrderBook (symbol, limit?, params?)

watchTrades

get the list of most recent trades for a particular symbol

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

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
bitstamp.watchTrades (symbol, since?, limit?, params?)

watchOrders

watches information on multiple orders made by the user

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

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
bitstamp.watchOrders (symbol, since?, limit?, params?)

On this page