Back to Ccxt

Bullish

wiki/exchanges/bullish.md

4.5.5238.5 KB
Original Source

<a name="bullish" id="bullish"></a>

bullish{docsify-ignore}

Kind: global class
Extends: <code>Exchange</code>

<a name="fetchTime" id="fetchtime"></a>

fetchTime{docsify-ignore}

fetches the current integer timestamp in milliseconds from the exchange server

Kind: instance method of <code>bullish</code>
Returns: <code>int</code> - the current integer timestamp in milliseconds from the exchange server

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#tag--time

ParamTypeRequiredDescription
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.fetchTime ([params])

<a name="fetchCurrencies" id="fetchcurrencies"></a>

fetchCurrencies{docsify-ignore}

fetches all available currencies on an exchange

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - an associative dictionary of currencies

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/assets

ParamTypeRequiredDescription
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.fetchCurrencies ([params])

<a name="fetchMarkets" id="fetchmarkets"></a>

fetchMarkets{docsify-ignore}

retrieves data on all markets for ace

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

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/markets

ParamTypeRequiredDescription
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.fetchMarkets ([params])

<a name="fetchOrderBook" id="fetchorderbook"></a>

fetchOrderBook{docsify-ignore}

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

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - A dictionary of order book structures indexed by market symbols

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/markets/-symbol-/orderbook/hybrid

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified symbol of the market to fetch the order book for
limit<code>int</code>Nothe maximum amount of order book entries to return (not used by bullish)
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.fetchOrderBook (symbol[, limit, params])

<a name="fetchTrades" id="fetchtrades"></a>

fetchTrades{docsify-ignore}

get the list of most recent trades for a particular symbol

Kind: instance method of <code>bullish</code>
Returns: <code>Array<Trade></code> - a list of trade structures

See

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified symbol of the market to fetch trades for
since<code>int</code>Notimestamp in ms of the earliest trade to fetch
limit<code>int</code>Nothe maximum amount of trades to fetch (max 100)
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.until<code>int</code>Notimestamp in ms of the latest trade to fetch
params.paginate<code>boolean</code>Nodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
javascript
bullish.fetchTrades (symbol[, since, limit, params])

<a name="fetchMyTrades" id="fetchmytrades"></a>

fetchMyTrades{docsify-ignore}

fetch all trades made by the user

Kind: instance method of <code>bullish</code>
Returns: <code>Array<Trade></code> - a list of trade structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/history/trades

ParamTypeRequiredDescription
symbol<code>string</code>Nounified market symbol
since<code>int</code>Nothe earliest time in ms to fetch trades for
limit<code>int</code>Nothe maximum number of trades structures to retrieve
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.until<code>int</code>Nothe latest time in ms to fetch trades for
params.orderId<code>string</code>Nothe order id to fetch trades for
params.clientOrderId<code>string</code>Nothe client order id to fetch trades for
params.tradingAccountId<code>string</code>Nothe trading account id to fetch trades for
javascript
bullish.fetchMyTrades ([symbol, since, limit, params])

<a name="fetchOrderTrades" id="fetchordertrades"></a>

fetchOrderTrades{docsify-ignore}

fetch all the trades made from a single order

Kind: instance method of <code>bullish</code>
Returns: <code>Array<object></code> - a list of trade structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/history/trades

ParamTypeRequiredDescription
id<code>string</code>Yesorder id
symbol<code>string</code>Yesunified market symbol
since<code>int</code>Nothe earliest time in ms to fetch trades for
limit<code>int</code>Nothe maximum number of trades to retrieve
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.clientOrderId<code>string</code>Nothe client order id to fetch trades for
javascript
bullish.fetchOrderTrades (id, symbol[, since, limit, params])

<a name="fetchTicker" id="fetchticker"></a>

fetchTicker{docsify-ignore}

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

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - a ticker structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/markets/-symbol-/tick

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified symbol of the market to fetch the ticker for
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.fetchTicker (symbol[, params])

<a name="fetchOHLCV" id="fetchohlcv"></a>

fetchOHLCV{docsify-ignore}

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

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

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/markets/-symbol-/candle

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified symbol of the market to fetch OHLCV data for
timeframe<code>string</code>Yesthe length of time each candle represents
since<code>int</code>Notimestamp in ms of the earliest candle to fetch
limit<code>int</code>Nothe maximum amount of candles to fetch (max 100)
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.until<code>int</code>Notimestamp in ms of the latest entry
params.paginate<code>boolean</code>Nodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
javascript
bullish.fetchOHLCV (symbol, timeframe[, since, limit, params])

<a name="fetchFundingRateHistory" id="fetchfundingratehistory"></a>

fetchFundingRateHistory{docsify-ignore}

fetches historical funding rate prices

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

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/history/markets/-symbol-/funding-rate

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified symbol of the market to fetch the funding rate history for
since<code>int</code>Nonot sent to exchange api, exchange api always returns the most recent data, only used to filter exchange response
limit<code>int</code>Nothe maximum amount of funding rate structures to fetch
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.fetchFundingRateHistory (symbol[, since, limit, params])

<a name="fetchOrders" id="fetchorders"></a>

fetchOrders{docsify-ignore}

fetches information on multiple orders made by the user

Kind: instance method of <code>bullish</code>
Returns: <code>Array<Order></code> - a list of order structures

See

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified market symbol of the market orders were made in
since<code>int</code>Nothe earliest time in ms to fetch orders for
limit<code>int</code>Nothe maximum number of order structures to retrieve (5, 25, 50, 100, default is 25)
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.until<code>int</code>Notimestamp in ms of the latest order to fetch
params.tradingAccountId<code>string</code>Nothe trading account id (mandatory parameter)
params.orderId<code>string</code>Nothe id of the order to fetch for
params.clientOrderId<code>string</code>Nothe client id of the order to fetch for
params.status<code>string</code>Nofilter by order status, 'OPEN', 'CANCELLED', 'CLOSED', 'REJECTED'
params.paginate<code>bool</code>Nodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
javascript
bullish.fetchOrders (symbol[, since, limit, params])

<a name="fetchOpenOrders" id="fetchopenorders"></a>

fetchOpenOrders{docsify-ignore}

fetch all unfilled currently open orders

Kind: instance method of <code>bullish</code>
Returns: <code>Array<Order></code> - a list of order structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#tag--history

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified market symbol of the market orders were made in
since<code>int</code>Nothe earliest time in ms to fetch orders for
limit<code>int</code>Nothe maximum number of order structures to retrieve
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.tradingAccountId<code>string</code>Yesthe trading account id (mandatory parameter)
javascript
bullish.fetchOpenOrders (symbol[, since, limit, params])

<a name="fetchCanceledOrders" id="fetchcanceledorders"></a>

fetchCanceledOrders{docsify-ignore}

fetches information on multiple canceled orders made by the user

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - a list of order structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#tag--orders

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified market symbol of the canceled orders
since<code>int</code>Notimestamp in ms of the earliest order
limit<code>int</code>Nothe max number of canceled orders to return
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.tradingAccountId<code>string</code>Nothe trading account id (mandatory parameter)
javascript
bullish.fetchCanceledOrders (symbol[, since, limit, params])

<a name="fetchClosedOrders" id="fetchclosedorders"></a>

fetchClosedOrders{docsify-ignore}

fetches information on multiple closed orders made by the user

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - a list of order structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#tag--orders

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified market symbol of the closed orders
since<code>int</code>Notimestamp in ms of the earliest order
limit<code>int</code>Nothe max number of closed orders to return
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.tradingAccountId<code>string</code>Yesthe trading account id (mandatory parameter)
javascript
bullish.fetchClosedOrders (symbol[, since, limit, params])

<a name="fetchCanceledAndClosedOrders" id="fetchcanceledandclosedorders"></a>

fetchCanceledAndClosedOrders{docsify-ignore}

fetches information on multiple canceled orders made by the user

Kind: instance method of <code>bullish</code>
Returns: <code>Array<object></code> - a list of order structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#tag--history

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified market symbol of the closed orders
since<code>int</code>Notimestamp in ms of the earliest order
limit<code>int</code>Nothe max number of closed orders to return
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.tradingAccountId<code>string</code>Nothe trading account id (mandatory parameter)
javascript
bullish.fetchCanceledAndClosedOrders (symbol[, since, limit, params])

<a name="fetchOrder" id="fetchorder"></a>

fetchOrder{docsify-ignore}

fetches information on an order made by the user

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - An order structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v2/orders/-orderId-

ParamTypeRequiredDescription
id<code>string</code>Yesthe order id
symbol<code>string</code>Nounified symbol of the market the order was made in
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.traidingAccountId<code>string</code>Nothe trading account id (mandatory parameter)
javascript
bullish.fetchOrder (id[, symbol, params])

<a name="createOrder" id="createorder"></a>

createOrder{docsify-ignore}

create a trade order

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - an order structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#post-/v2/orders

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified symbol of the market to create an order in
type<code>string</code>Yes'market' or 'limit' or 'STOP_LIMIT' or 'POST_ONLY'
side<code>string</code>Yes'buy' or 'sell'
amount<code>float</code>Yeshow much of currency you want to trade in units of base currency
price<code>float</code>Nothe price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.clientOrderId<code>string</code>Noa custom client order id
params.triggerPrice<code>float</code>Nothe price at which a stop order is triggered at
params.timeInForce<code>string</code>Nothe time in force for the order, either 'GTC' (Good Till Cancelled) or 'IOC' (Immediate or Cancel), default is 'GTC'
params.allowBorrow<code>bool</code>Noif true, the order will be allowed to borrow assets to fulfill the order (default is false)
params.postOnly<code>bool</code>Noif true, the order will only be posted to the order book and not executed immediately (default is false)
params.traidingAccountId<code>string</code>Yesthe trading account id (mandatory parameter)
javascript
bullish.createOrder (symbol, type, side, amount[, price, params])

<a name="editOrder" id="editorder"></a>

editOrder{docsify-ignore}

edit a trade limit order

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - an order structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#post-/v2/command-amend

ParamTypeRequiredDescription
id<code>string</code>Yesorder id
symbol<code>string</code>Nounified symbol of the market to create an order in
type<code>string</code>No'limit' or 'POST_ONLY'
side<code>string</code>Nonot used by bullish editOrder
amount<code>float</code>Nohow much of the currency you want to trade in units of the base currency
price<code>float</code>Nothe price for the order, in units of the quote currency, ignored in market orders
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.traidingAccountId<code>string</code>Nothe trading account id (mandatory parameter)
params.postOnly<code>bool</code>Noif true, the order will only be posted to the order book and not executed immediately (default is false)
params.clientOrderId<code>string</code>Noa unique identifier for the order, automatically generated if not sent
javascript
bullish.editOrder (id[, symbol, type, side, amount, price, params])

<a name="cancelOrder" id="cancelorder"></a>

cancelOrder{docsify-ignore}

cancels an open order

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - An order structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#post-/v2/command-cancellations

ParamTypeRequiredDescription
id<code>string</code>Noorder id
symbol<code>string</code>Yesunified symbol of the market the order was made in
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.commandType<code>string</code>Yesthe command type, default is 'V3CancelOrder' (mandatory parameter)
params.traidingAccountId<code>string</code>Nothe trading account id (mandatory parameter)
javascript
bullish.cancelOrder ([id, symbol, params])

<a name="cancelAllOrders" id="cancelallorders"></a>

cancelAllOrders{docsify-ignore}

cancel all open orders in a market

Kind: instance method of <code>bullish</code>
Returns: <code>Array<object></code> - a list of order structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#post-/v2/command-cancellations

ParamTypeRequiredDescription
symbol<code>string</code>Noalpaca cancelAllOrders cannot setting symbol, it will cancel all open orders
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.traidingAccountId<code>string</code>Yesthe trading account id (mandatory parameter)
javascript
bullish.cancelAllOrders ([symbol, params])

<a name="fetchDepositsWithdrawals" id="fetchdepositswithdrawals"></a>

fetchDepositsWithdrawals{docsify-ignore}

fetch history of deposits and withdrawals

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - a list of transaction structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/wallets/transactions

ParamTypeRequiredDescription
code<code>string</code>Nounified currency code for the currency of the deposit/withdrawals, default is undefined
since<code>int</code>Notimestamp in ms of the earliest deposit/withdrawal, default is undefined
limit<code>int</code>Nomax number of deposit/withdrawals to return, default is undefined
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.fetchDepositsWithdrawals ([code, since, limit, params])

<a name="withdraw" id="withdraw"></a>

withdraw{docsify-ignore}

make a withdrawal

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - a transaction structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#post-/v1/wallets/withdrawal

ParamTypeRequiredDescription
code<code>string</code>Yesunified currency code
amount<code>float</code>Yesthe amount to withdraw
address<code>string</code>Yesthe address to withdraw to
tag<code>string</code>No
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.timestamp<code>string</code>Yesthe timestamp of the withdrawal request (mandatory)
params.nonce<code>string</code>Yesthe nonce of the withdrawal request (mandatory)
params.network<code>string</code>Yesnetwork for withdraw (mandatory)
javascript
bullish.withdraw (code, amount, address[, tag, params])

<a name="fetchAccounts" id="fetchaccounts"></a>

fetchAccounts{docsify-ignore}

fetch all the accounts associated with a profile

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - a dictionary of account structures indexed by the account type

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#tag--trading-accounts

ParamTypeRequiredDescription
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.fetchAccounts ([params])

<a name="fetchDepositAddress" id="fetchdepositaddress"></a>

fetchDepositAddress{docsify-ignore}

fetch the deposit address for a currency associated with this account

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - an address structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/wallets/deposit-instructions/crypto/-symbol-

ParamTypeRequiredDescription
code<code>string</code>Yesunified currency code
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.network<code>string</code>Nonetwork for deposit address
javascript
bullish.fetchDepositAddress (code[, params])

<a name="fetchBalance" id="fetchbalance"></a>

fetchBalance{docsify-ignore}

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

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - a balance structure

See

ParamTypeRequiredDescription
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.tradingAccountId<code>string</code>Yesthe trading account id (mandatory parameter)
params.code<code>string</code>Nounified currency code, default is undefined
javascript
bullish.fetchBalance ([params])

<a name="fetchPositions" id="fetchpositions"></a>

fetchPositions{docsify-ignore}

fetch all open positions

Kind: instance method of <code>bullish</code>
Returns: <code>Array<object></code> - a list of position structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/derivatives-positions

ParamTypeRequiredDescription
symbols<code>Array<string></code>, <code>undefined</code>Yeslist of unified market symbols
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.tradingAccountId<code>string</code>Yesthe trading account id
javascript
bullish.fetchPositions (symbols[, params])

<a name="fetchTransfers" id="fetchtransfers"></a>

fetchTransfers{docsify-ignore}

fetch a history of internal transfers made on an account

Kind: instance method of <code>bullish</code>
Returns: <code>Array<object></code> - a list of transfer structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/history/transfer

ParamTypeRequiredDescription
code<code>string</code>Yesunified currency code of the currency transferred
since<code>int</code>Nothe earliest time in ms to fetch transfers for
limit<code>int</code>Nothe maximum number of transfer structures to retrieve
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.until<code>int</code>Yesthe latest time in ms to fetch transfers for (default time now)
params.tradingAccountId<code>string</code>Yesthe trading account id
javascript
bullish.fetchTransfers (code[, since, limit, params])

<a name="transfer" id="transfer"></a>

transfer{docsify-ignore}

transfer currency internally between wallets on the same account

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - a transfer structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#post-/v1/command-commandType-V1TransferAsset

ParamTypeRequiredDescription
code<code>string</code>Yesunified currency codeåå
amount<code>float</code>Yesamount to transfer
fromAccount<code>string</code>Yesaccount ID to transfer from
toAccount<code>string</code>Yesaccount ID to transfer to
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.transfer (code, amount, fromAccount, toAccount[, params])

<a name="fetchBorrowRateHistory" id="fetchborrowratehistory"></a>

fetchBorrowRateHistory{docsify-ignore}

retrieves a history of a currencies borrow interest rate at specific time slots

Kind: instance method of <code>bullish</code>
Returns: <code>Array<object></code> - an array of borrow rate structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/history/borrow-interest

ParamTypeRequiredDescription
code<code>string</code>Yesunified currency code
since<code>int</code>Notimestamp for the earliest borrow rate
limit<code>int</code>Nothe maximum number of borrow rate structures to retrieve
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.until<code>int</code>Yesthe latest time in ms to fetch entries for
params.tradingAccountId<code>string</code>Yesthe trading account id
javascript
bullish.fetchBorrowRateHistory (code[, since, limit, params])

<a name="fetchOpenInterest" id="fetchopeninterest"></a>

fetchOpenInterest{docsify-ignore}

fetches the open interest of a specific market

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - an open interest structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#get-/v1/markets/-symbol-/tick

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified symbol of the market to fetch the open interest for
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.fetchOpenInterest (symbol[, params])

<a name="signIn" id="signin"></a>

signIn{docsify-ignore}

sign in, must be called prior to using other authenticated methods

Kind: instance method of <code>bullish</code>
Returns: response from exchange

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#overview--add-authenticated-request-header

ParamTypeRequiredDescription
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.signIn ([params])

<a name="watchTrades" id="watchtrades"></a>

watchTrades{docsify-ignore}

get the list of most recent trades for a particular symbol

Kind: instance method of <code>bullish</code>
Returns: <code>Array<object></code> - a list of trade structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#overview--unified-anonymous-trades-websocket-unauthenticated

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified symbol of the market to fetch trades for
since<code>int</code>Notimestamp in ms of the earliest trade to fetch
limit<code>int</code>Nothe maximum amount of trades to fetch
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.watchTrades (symbol[, since, limit, params])

<a name="watchTicker" id="watchticker"></a>

watchTicker{docsify-ignore}

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

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - a ticker structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#overview--anonymous-market-data-price-tick-unauthenticated

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified symbol of the market to fetch the ticker for
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.watchTicker (symbol[, params])

<a name="watchOrderBook" id="watchorderbook"></a>

watchOrderBook{docsify-ignore}

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

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - A dictionary of order book structures indexed by market symbols

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#overview--multi-orderbook-websocket-unauthenticated

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified symbol of the market to fetch the order book for
limit<code>int</code>Nothe maximum amount of order book entries to return
params<code>object</code>Noextra parameters specific to the exchange API endpoint
javascript
bullish.watchOrderBook (symbol[, limit, params])

<a name="watchOrders" id="watchorders"></a>

watchOrders{docsify-ignore}

watches information on multiple orders made by the user

Kind: instance method of <code>bullish</code>
Returns: <code>Array<object></code> - a list of order structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#overview--private-data-websocket-authenticated

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified market symbol of the market orders were made in
since<code>int</code>Nothe earliest time in ms to fetch orders for
limit<code>int</code>Nothe maximum number of order structures to retrieve
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.tradingAccountId<code>string</code>Nothe trading account id to fetch entries for
javascript
bullish.watchOrders (symbol[, since, limit, params])

<a name="watchMyTrades" id="watchmytrades"></a>

watchMyTrades{docsify-ignore}

watches information on multiple trades made by the user

Kind: instance method of <code>bullish</code>
Returns: <code>Array<object></code> - a list of trade structures

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#overview--private-data-websocket-authenticated

ParamTypeRequiredDescription
symbol<code>string</code>Yesunified market symbol of the market trades were made in
since<code>int</code>Nothe earliest time in ms to fetch trades for
limit<code>int</code>Nothe maximum number of trade structures to retrieve
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.tradingAccountId<code>string</code>Nothe trading account id to fetch entries for
javascript
bullish.watchMyTrades (symbol[, since, limit, params])

<a name="watchBalance" id="watchbalance"></a>

watchBalance{docsify-ignore}

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

Kind: instance method of <code>bullish</code>
Returns: <code>object</code> - a balance structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#overview--private-data-websocket-authenticated

ParamTypeRequiredDescription
params<code>object</code>Noextra parameters specific to the exchange API endpoint
params.tradingAccountId<code>string</code>Nothe trading account id to fetch entries for
javascript
bullish.watchBalance ([params])

<a name="watchPositions" id="watchpositions"></a>

watchPositions{docsify-ignore}

watch all open positions

Kind: instance method of <code>bullish</code>
Returns: <code>Array<object></code> - a list of position structure

See: https://api.exchange.bullish.com/docs/api/rest/trading-api/v2/#overview--private-data-websocket-authenticated

ParamTypeRequiredDescription
symbols<code>Array<string></code>Nolist of unified market symbols
since<code>int</code>Nothe earliest time in ms to fetch positions for
limit<code>int</code>Nothe maximum number of positions to retrieve
params<code>object</code>Yesextra parameters specific to the exchange API endpoint
javascript
bullish.watchPositions ([symbols, since, limit, params])