- Main Modules
- Abstract Objects
- Core Functionality
- Object References
- accountClosure
- accountSecurity
- accountStatistics
- activeSymbols
- apiToken
- appDelete
- appGet
- appList
- appMarkupDetails
- appRegister
- appUpdate
- assetIndex
- authorize
- balance
- buy
- buyContractForMultipleAccounts
- cashier
- cashierPassword
- changePassword
- contractsFor
- copyStart
- copyStop
- copytradingList
- copytradingStatistics
- documentUpload
- exchangeRates
- forget
- forgetAll
- getAccountStatus
- getFinancialAssessment
- getLimits
- getSelfExclusion
- getSettings
- landingCompany
- landingCompanyDetails
- loginHistory
- logout
- mt5Deposit
- mt5GetSettings
- mt5LoginList
- mt5Mamm
- mt5NewAccount
- mt5PasswordChange
- mt5PasswordCheck
- mt5PasswordReset
- mt5Withdrawal
- newAccountMaltainvest
- newAccountReal
- newAccountVirtual
- notificationEvent
- oauthApps
- paymentagentList
- paymentagentTransfer
- paymentagentWithdraw
- payoutCurrencies
- ping
- portfolio
- profitTable
- proposal
- proposalArray
- proposalOpenContract
- realityCheck
- requestReport
- resetPassword
- residenceList
- revokeOauthApp
- sell
- sellContractForMultipleAccounts
- sellExpired
- serviceToken
- setAccountCurrency
- setFinancialAssessment
- setSelfExclusion
- setSettings
- statement
- statesList
- ticks
- ticksHistory
- time
- tncApproval
- topupVirtual
- tradingDurations
- tradingTimes
- transaction
- transferBetweenAccounts
- verifyEmail
- websiteStatus
- InMemory
- TransactionParams
- Immutable
- ExpiryType
- ContractCategory
- Stream
The main class of the DerivAPI module. This class extends the minimum functionality provided by the DerivAPIBasic adding abstract objects that can be used to read data and interact with the API.
optionsObject For options details see: DerivAPIBasic
basicDerivAPIBasic Basic API, used for making low-level calls to the API
// Returns an abstract ticks object
const ticks = api.ticks('R_100');
// Subscribe to updates on the ticks object
ticks.onUpdate().subscribe(console.log);
// Read the last ticks available in the default range
const ticks_history = ticks.list;
// Read the last 100 ticks until yesterday
const older_history = await ticks.history({ count: 100, end: new Date(yesterday) });
// Access to low-level API
const api_basic = api.basic;Provides a ticks stream and a list of available ticks
options(String | TicksParam) symbol or a ticks parameter object
Provides a list of available candles with the default granularity
options(String | CandlesParam) symbol or a candles parameter object
A contract object with latest market values, cannot be bought or sold
optionsContractParam parameters defining the contract
An underlying object, including contract groups, pip size, etc.
symbolString The underlying symbol
Returns Promise<Underlying>
An account object, including loginid, balance, contracts, etc.
tokenString Token to create the account with
Trading assets including multiple underlyings and trading times
Website status stream
Returns Promise<WebsiteStatus>
Request contract options to display in UI
symbol
Returns Promise<ContractOptions>
Extends DerivAPICalls
The minimum functionality provided by DerivAPI, provides direct calls to the
API.
api.cache is available if you want to use the cached data (see Cache)
optionsObject (optional, default{})options.app_idNumber Application ID of the API useroptions.connectionWebSocket? A ready to use connectionoptions.endpointString API server to connect to (optional, default'frontend.binaryws.com')options.langString Language of the API communication (optional, default'EN')options.brandString Brand name (optional, default'')options.middlewareObject A middleware to call on certain API actions (optional, default{})options.storageoptions.cache(optional, defaultnew InMemory())
eventsObservablecacheCache Temporary cache default to @link{InMemory}storageCache If specified, uses a more presistent cache (local storage, etc.)
const apiFromOpenConnection = new DerivAPI({ connection });
const apiFromEndpoint = new DerivAPI({ endpoint: 'ws.binaryws.com', app_id: 1234 });Reconnects to the API in case of connection error, unless connection is passed as an argument, in that case reconnecting should be handled in the API user side.
Returns Observable for close events
Returns Observable for open events
Returns Observable for new messages
typesString Expect these types to be received by the API
Returns (Promise<Object> | Promise<Array>) Resolves to a single response or an array
Abstract objects that provide static content and methods to make use of them, changing internal fields of these objects is blocked and they do not receive updates.
Extends Immutable
Abstract class for user accounts
loginidStringuser_idStringemailStringcountryStringcurrencyStringriskStringshow_authenticationBooleanlanding_companyFullNamebalanceBalancetransactionsTransactionsstatus_codesArray<String>siblingsArray<Object>contractsArray<Contract>open_contractsArray<Contract>closed_contractsArray<Contract>api_tokensArray<String>
const account = await api.accounts(your_token);
// Returns the open contracts of this account
const open_contracts = account.open_contracts;
const siblings = account.siblings;
// Switches the API account to the first sibling
// The existing account instance is not authorized anymore and should be discarded
const sibling = await api.account(loginidToToken(siblings[0].loginid));Extends Immutable
Abstract class for trading assets
apiDerivAPI
underlyingsArray<Underlying>open_marketsArray<Underlying>trading_timesObjecttrading_durationsObject
const assets = await api.assets();
// Get the current open markets
const open_markets = assets.open_markets;
const trading_times = assets.trading_times;Extends Immutable
Abstract class for an underlying
nameFullNameis_openBooleanis_trading_suspendedBooleanpipNumberpip_sizeNumbercontract_groupsObject
const underlying = await api.underlying('R_100');
const pip_sized = underlying.pipSizedValue(123.1);
// Same as api.tickStream(symbol);
const tick_stream = underlying.tickStream();
if (underlying.is_open) await contract.buy();Returns the pipSized display of the value in string
value
Shortcut for api.ticks(symbol)
Shortcut for api.candles(symbol)
Extends Immutable
A wrapper class for Tick
timeCustomDatequoteMarketValueaskMarketValuebidMarketValuerawObject The raw data received from API
Extends Immutable
A wrapper class for Candle
timeCustomDate The current time of the candleopen_timeCustomDate The time that candle openedopenMarketValuehighMarketValuelowMarketValuecloseMarketValuerawObject The raw data received from API
Extends Immutable
A class for transaction objects
transactionObjecttransaction.actionStringtransaction.currencyStringtransaction.amountNumbertransaction.balanceNumbertransaction.high_barrier(String | Number)transaction.low_barrier(String | Number)transaction.barrier(String | Number)transaction.longcodeStringtransaction.symbolStringtransaction.display_nameString Belongs to symboltransaction.transaction_idNumbertransaction.contract_idNumbertransaction.purchase_timeNumbertransaction.expiry_timeNumbertransaction.transaction_timeNumber
pipNumberlang
actionStringlongcodeStringidNumber transaction IDcontract_idNumbersymbolFullNameamountMonetarybalanceMonetaryhigh_barrierMarketValuelow_barrierMarketValuebarrierMarketValuepurchase_timeCustomDateexpiry_timeCustomDatetimeCustomDaterawObject The raw data received from API
Extends Immutable
Wrapper around a Buy response
buybuy.buy_priceMonetarybuy.balance_afterMonetarybuy.payoutMonetarybuy.start_timeCustomDatebuy.purchase_timeCustomDatebuy.contract_idNumberbuy.transaction_idNumberbuy.longcodeStringbuy.shortcodeString
currencyStringlang
priceMonetarybalance_afterMonetarypayoutMonetarystart_timeCustomDatepurchase_timeCustomDatecontract_idNumbertransaction_idNumbercodeFullName contains short and long codelongcodeStringshortcodeString
Extends Immutable
Wrapper around a Sell response
sellcurrencyStringlang
priceMonetarybalance_afterMonetarycontract_idNumbertransaction_idNumberbuy_transactionNumber
Extends Immutable
Abstract objects for options needed to create a contract
apisymbol
categoriesObjectcategories.higherlowerContractCategory
currenciesObjectcurrencies.usdString Example
Live stream of data, plus some dynamically updated fields, you
can subscribe to changes using the onUpdate method on all of
these classes.
Extends Stream
An abstract class for balance information
apiDerivAPI
amountMonetaryvalueNumber numeric balance valuecurrencyString currency of the amountdisplayString display value of amount (decimal point)formatString formatted amount (decimal point, comma separated)
const balance = accounts.balance;
const formatted_balance = balance.format;
balance.onUpdate().subscribe(balance => console.log)Extends Stream
An abstract class for Candles stream returned from DerivAPI#candleStream
apiDerivAPIoptionsCandlesParam?
Resolves to a list of candles given the range
rangeHistoryRange?
const old_candles = await candle_stream.history({count: 10, end: yesterday})Returns Promise<Array<Candle>>
Extends Stream
Abstract class for contracts
apiDerivAPIoptionsContractParam
statusString 'proposal', 'open', 'expired', 'sold', 'won', 'lost'ask_priceMonetary Price to pay to buy a contracttypeString contract typepayoutMonetary Potential or realized payoutlongcodeStringsymbolStringcurrencyStringcurrent_spotSpotstart_timeCustomDate Start time of the contract (estimated for proposal)buy_priceMonetary? (After buy)bid_priceMonetary? (After buy)sell_priceMonetary? (After sell)profitProfit? Potential or realized profit (After buy)proposal_idNumber? The proposal ID used to buyidNumber? The contract ID (After buy)purchase_timeCustomDate? (After buy)expiry_timeCustomDate? (After buy)sell_timeCustomDate? (After sell)barrier_countNumber? (For contracts with barrier)high_barrierMarketValue? (For contracts with two barriers)low_barrierMarketValue? (For contracts with two barriers)barrierMarketValue? (For contracts with one barrier)tick_countNumber? (For tick contracts)ticksArray<Tick>? (For tick contracts)multiplierNumber? (For loopback contracts)shortcodeString?validation_errorString?is_forward_startingBoolean?is_intradayBoolean?is_path_dependentBoolean?is_valid_to_sellBoolean? We still allow a sell call, let API handle the erroris_expiredBoolean?is_settleableBoolean?is_openBoolean? Is this contract still openentry_spotSpot?exit_spotSpot?audit_detailsObject?codeFullName? only if both short and long codes are available
const contract = account.contract({ contract_type: 'CALL', ...options })
const buy = await contract.buy();
contract.onUpdate().subscribe(console.log)Buys this contract
buyBuyParam (optional, default{})buy.max_price(optional, defaultthis.ask_price.value)
Returns Buy
Sells this contract
sellSellParam zero price means sell at market (optional, default{})sell.max_price(optional, default0)
Returns Sell
Extends Stream
Abstract class for ticks stream returned by the DerivAPI#tickStream
apiDerivAPIoptionsTicksParam
Resolves to a list of Ticks using the given range
rangeHistoryRange?
const old_ticks = await tickStream.history({count: 10, end: yesterday})Extends Stream
A stream of transactions
apiDerivAPI
listArray<Transaction> An immutable list of transactions
const tx_stream = accounts.transaction_stream;
const tx_list = tx_stream.list;
tx_stream.onUpdate(console.log)Extends Stream
An abstract class for website status info
apiDerivAPI
statusString 'up', 'down'is_website_upBooleancountryStringcurrenciesObjectcall_limitsObjectlanguagesArray<String>terms_and_conditions_versionString
const website_status = await api.websiteStatus();
const is_website_up = website_status.is_website_up;
website_status.onUpdate(s => console.log(`Site is ${s.status}`));Container classes for data types, providing means to convert them to other types and represent them to the UI. These are mostly simpler objects used for representing data.
Extends MarketValue
A barrier info, either absolute or relative
Extends Immutable
An alternative date object
date(CustomDate | Date | Number)
date(CustomDate | Date | Number)
Returns Boolean
date(CustomDate | Date | Number)
Returns Boolean
date(CustomDate | Date | Number)
Returns Boolean
date(CustomDate | Date | Number)
Returns Boolean
date(CustomDate | Date | Number)
Returns Boolean
Adds a duration to the current date
Returns CustomDate
Extends Immutable
An abstract class for date range
minCustomDatemaxCustomDate
Extends Immutable
Duration object
durationString
Adds this duration to a date object
dateCustomDate
Returns CustomDate
Extends Immutable
An abstract class for date range
Extends Immutable
A class for keeping short and full name of things
fullStringlongString alias forfullshortStringcodeString alias forshortshortcodeString alias forshort
const lc = account.landing_company;
console.log(`Landing Company: ${lc.full}, Short code: ${lc.short}`);Extends Immutable
Keeps a market value and pip size
Extends Immutable
Keeps money related values
valueNumbercurrencyStringdisplayString decimal value based on currencyformatString comma separated decimal value based on currency
Extends Monetary
Keeps money related values
valueNumber Absolute value of the profitpercentageNumbersignNumber 0: no profit, 1: positive profit, -1: lossis_winBoolean True if the initial profit is positivecurrencyStringdisplayString decimal value based on currencyformatString comma separated decimal value based on currency
Extends MarketValue
Keeps a market value at a time
pip_sizeNumberpip_sizedNumber the pipsized valuetimeCustomDate the spot time
Extends DerivAPICalls
Cache - A class for implementing in-memory and persistent cache
The real implementation of the underlying cache is delegated to the storage object (See the params).
The storage object needs to implement the API.
apiDerivAPIBasic API instance to get data that is not cachedstorageObject A storage instance to use for caching
// Read the latest active symbols
const symbols = await api.activeSymbols();
// Read the data from cache if available
const cached_symbols = await api.cache.activeSymbols();Subscription Manager - manage subscription channels
Makes sure there is always only one subscription channel for all requests of subscriptions, keeps a history of received values for the subscription of ticks and forgets channels that do not have subscribers. It also ensures that subscriptions are revived after connection drop/account changed.
api
// This one creates a new subscription assuming it is the first one for R_100
const subscriber1 = api.subscribe({ ticks: 'R_100' }, console.log);
// This one uses the existing subscription to R_100
const subscriber2 = api.subscribe({ ticks: 'R_100' }, console.log);
subscriber1.unsubscribe(); // no API forget yet
subscriber2.unsubscribe(); // Issues API forgetSubscribe to a given request, returns a stream of new responses, Errors should be handled by the user of the stream
requestObject A request object acceptable by the API
const ticks = api.subscribe({ ticks: 'R_100' });
ticks.subscribe(console.log) // Print every new tickReturns Observable An RxJS Observable
These are plain JavaScript objects that are named to easily refer to them in this documentation, they don't physically exist as a class in this codebase.
Type: Object
granularityNumber Granularity in secondsrangeHistoryRange A chunk of history to return with start and end timesymbolString Symbol of the candles
Type: Object
rangeHistoryRange A chunk of history to return with start and end timesymbolString The ticks symbol
Type: Object
max_priceNumber? Maximum acceptable price for buying the contract
Type: Object
max_priceNumber? Maximum acceptable price for selling the contract
Type: Object
contract_typeStringamountNumberbarrierStringbarrier2Stringexpiry_time(Number | Date) epoch in seconds or Datestart_time(Number | Date) epoch in seconds or DateCurrencyString? Default is the account currencybasisString stake or payoutduration(Number | String) duration with unit or duration in numberduration_unitString? duration unit, required if duration is numberproduct_typeString? 'multi_barrier' or 'basic'
Type: Object
start(Number | Date) An epoch in seconds or a Date objectend(Number | Date) An epoch in seconds or a Date objectcountNumber Number of ticks returned by history
argsObject (optional, default{})
argsObject (optional, default{})args.account_securityNumber Must be 1args.otpString OTP (one-time passcode) generated by a 2FA application like Authy, Google Authenticator or Yubikey.args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.totp_actionAny Action to be taken for managing TOTP (time-based one-time password, RFC6238). Generate will create a secret key which is then returned in the secret_key response field, you can then enable by using that code in a 2FA application.
argsObject (optional, default{})
argsObject (optional, default{})args.active_symbolsAny If you use 'brief', only a subset of fields will be returned.args.landing_companyAny [Optional] If you specify this field, only symbols available for trading by that landing company will be returned. If you are logged in, only symbols available for trading by your landing company will be returned regardless of what you specify in this field.args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.product_typeAny [Optional] If you specify this field, only symbols that can be traded through that product type will be returned.args.req_idNumber [Optional] Used to map request to response.
argsObject (optional, default{})args.api_tokenNumber Must be 1args.delete_tokenString The token to removeargs.new_tokenString The name of the created tokenargs.new_token_scopesAny -args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.valid_for_current_ip_onlyNumber Optional field, if you set this parameter during token creation, then the token created will only work for the IP address that was used to create the token
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})args.app_idNumber Optional: specific application app_id to report onargs.app_markup_detailsNumber Must be 1.args.client_loginidString Optional: specific client loginid to report on, like CR12345args.date_fromString Start date (epoch or YYYY-MM-DD HH:MM:SS). Results are inclusive of this time.args.date_toString End date (epoch or YYYY-MM-DD HH::MM::SS). Results are inclusive of this time.args.descriptionNumber If set to 1, will return app_markup transaction details.args.limitNumber Optional: (default 1000): Apply upper limit to count of transactions receivedargs.offsetNumber Optional: Skip this many transactionsargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.sortString Optional transaction_time sort direction, default DESC. Other fields sort order is ASC.args.sort_fieldsAny Optional one or more of the specified fields to sort on. Default sort field is by transaction_time.
argsObject (optional, default{})args.app_markup_percentageNumber Markup to be added to contract prices (as a percentage of contract payout). Min: 0, Max: 5args.app_registerNumber Must be 1args.appstoreString Application's App Store URL (if applicable)args.githubString Application's GitHub page (for open-source projects)args.googleplayString Application's Google Play URL (if applicable)args.homepageString Application's homepageargs.nameString Application nameargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.redirect_uriString Application redirect_uriargs.req_idNumber Optional field to map request to responseargs.scopesAny -args.verification_uriString Application verification_uri
argsObject (optional, default{})args.app_markup_percentageNumber Markup to be added to contract prices (as a percentage of contract payout). Min: 0, Max: 5args.app_updateNumber Application app_idargs.appstoreString Application's App Store URL (if applicable)args.githubString Application's GitHub page (for open-source projects)args.googleplayString Application's Google Play URL (if applicable)args.homepageString Application's homepageargs.nameString Application nameargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.redirect_uriString Application redirect_uriargs.req_idNumber Optional field to map request to responseargs.scopesAny Change scopes will revoke all user's grants and log them out.args.verification_uriString Application verification_uri
argsObject (optional, default{})args.asset_indexNumber Must be 1.args.landing_companyAny [Optional] If specified, will return only the underlyings for the specified landing company.args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.
argsObject (optional, default{})args.add_to_login_historyAny [Optional] Send this when you use api tokens for authorization and want to track activity using login_history call.args.authorizeString Authentication token. May be retrieved from https://www.binary.com/en/user/security/api_tokenws.htmlargs.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.
argsObject (optional, default{})args.balanceNumber Must be 1.args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.subscribeAny If set to 1, will send updates whenever the balance changes.
argsObject (optional, default{})args.buyString Either the id received from a Price Proposal (proposal) call, or 1 if contract buy parameters are passed in the parameters fieldargs.parametersAny -args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.priceNumber Maximum price at which to purchase the contract.args.req_idNumber Optional field to map request to responseargs.subscribeAny 1 - to stream
argsObject (optional, default{})args.buy_contract_for_multiple_accountsString Either the id received from a Price Proposal (proposal) call, or 1 if contract buy parameters are passed in the parameters fieldargs.parametersAny -args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.priceNumber Maximum price at which to purchase the contract.args.req_idNumber Optional field to map request to responseargs.tokensAny -
argsObject (optional, default{})args.cashierAny either deposit or withdraw, default to depositargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.providerAny Note only doughflow is supported currently.args.req_idNumber Optional field to map request to responseargs.verification_codeString Email verification code (received from a verify_email call, which must be done first)
argsObject (optional, default{})args.cashier_passwordNumber Must be 1args.lock_passwordString new password to lock cashier, required for lock (length within 6-25 chars, accepts any printable ASCII character)args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.unlock_passwordString old password to unlock cashier, required for unlock (length within 6-25 chars, accepts any printable ASCII character)
argsObject (optional, default{})args.change_passwordNumber Must be 1args.new_passwordString New password (length within 6-25 chars, accepts any printable ASCII character)args.old_passwordString Old password for validation (non-empty string, accepts any printable ASCII character)args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to response
argsObject (optional, default{})args.contracts_forString The short symbol name (obtained from active_symbols call).args.currencyString [Optional] Currency of the contract's stake and payout (obtained from payout_currencies call).args.landing_companyAny [Optional] Indicates which landing_company to get a list of contracts for. If you are logged in, your landing company will override this field.args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.product_typeAny [Optional] If you specify this field, only contracts tradable through that contract type will be returned.args.req_idNumber [Optional] Used to map request to response.
argsObject (optional, default{})args.assetsAny Optional field, used to set assets to be copied. E.x ["frxUSDJPY", "R_50"]args.copy_startString API tokens identifying the accounts of trader which will be used to copy tradesargs.max_trade_stakeNumber Optional field, used to set maximum trade stake to be copiedargs.min_trade_stakeNumber Optional field, used to set minimal trade stake to be copiedargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.trade_typesAny Optional field, used to set trade types to be copied. E.x ["CALL", "PUT"]
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})args.document_formatAny Document file formatargs.document_idString [Optional] Document ID (required for Passport, Proof of ID and Driver's License)args.document_typeString Document typeargs.document_uploadNumber Must be 1args.expected_checksumString The checksum of the file to be uploadedargs.expiration_dateString [Optional] Document expiration date (required for Passport, Proof of ID and Driver's License)args.file_sizeNumber Document size (should be less than 3MB)args.page_typeAny Optional field to determine document sideargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to response
argsObject (optional, default{})args.base_currencyString Base currency (can be obtained from payout_currencies call)args.exchange_ratesNumber Must be 1args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.
argsObject (optional, default{})
argsObject (optional, default{})args.forget_allAny Cancel all streams by type (it can be a single string e.g. 'ticks', or an array of multiple values, e.g. ['ticks', 'candles']). Possible values are: 'ticks', 'candles', 'proposal', 'proposal_open_contract', 'balance', 'transaction', 'proposal_array', 'website_status'.args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})args.landing_company_detailsAny Landing company shortcode.args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.
argsObject (optional, default{})args.limitNumber Apply limit to count of login history records, default to 10. Max:50args.login_historyNumber Must be 1.args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to response
argsObject (optional, default{})
argsObject (optional, default{})args.amountNumber Amount to deposit (in the currency of from_binary); min = $1 or an equivalent amount, max = $20000 or an equivalent amountargs.from_binaryString Binary account loginid to transfer money fromargs.mt5_depositNumber -args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.to_mt5String MT5 account login to deposit money to
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})args.actionAny [Optional] Pass this if you want to revoke current manager assigned to mt5 accountargs.loginString MT5 user loginargs.mt5_mammNumber -args.passthroughAny [Optional] field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] field to map request to response
argsObject (optional, default{})args.account_typeAny Account typeargs.addressString [Optional] The address of the user. The maximum length of this address field is 128 characters.args.cityString [Optional] User's city of residence.args.companyString [Optional] Name of the client's company. The maximum length of the company name is 64 characters.args.countryString [Optional] 2-letter country code (value received from residence_list call).args.emailString Email addressargs.investPasswordString The investor password of the account. The password must contain at least two of three types of characters (lower case, upper case and digits) and meet the minimum length requirements set for the group. This field is required.args.leverageString Client leverage (from 1 to 1000).args.mainPasswordString the master password of the account. The password must contain at least two of three types of characters (lower case, upper case and digits) and meet the minimum length requirements set for the group. This field is required.args.manager_idNumber [Optional] Login id of manager whom you want to assign to manage your assets, applicable for MT5 Multiple Accounts Manager only.args.mt5_account_typeAny Standard: Variable spreads, High leverage. Advanced: Variable spreads, Medium Leverage, more products.args.mt5_new_accountNumber Must be 1args.nameString Client's name. The maximum length here is 101 characters.args.passthroughAny [Optional] field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.phoneString [Optional] User's phone number. Max length 50.args.phonePasswordString the user's phone password. Max length 50.args.req_idNumber [Optional] field to map request to responseargs.stateString [Optional] User's state (region) of residence.args.zipCodeString [Optional] User's zip code. Max length 50.
argsObject (optional, default{})args.loginString MT5 user loginargs.mt5_password_changeNumber Must be 1args.new_passwordString New password (length within 8-25 chars, accepts any printable ASCII character)args.old_passwordString Old password for validation (non-empty string, accepts any printable ASCII character)args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.password_typeAny Password type main/investor (default: main)args.req_idNumber Optional field to map request to response
argsObject (optional, default{})args.loginString MT5 user loginargs.mt5_password_checkNumber Must be 1args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.passwordString the password of the account.args.password_typeAny the password type main/investor (default: main)args.req_idNumber Optional field to map request to response
argsObject (optional, default{})args.loginString MT5 user loginargs.mt5_password_resetNumber Must be 1args.new_passwordString New password of the account (length within 8-25 chars, accepts any printable ASCII character).args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.password_typeString Password type main/investor (default: main)args.req_idNumber Optional field to map request to responseargs.verification_codeString Email verification code (received from a verify_email call, which must be done first)
argsObject (optional, default{})args.amountNumber Amount to withdraw (in the currency of the MT5 account); min = $1 or an equivalent amount, max = $20000 or an equivalent amount.args.from_mt5String MT5 account login to withdraw money fromargs.mt5_withdrawalNumber -args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.to_binaryString Binary account loginid to transfer money to
argsObject (optional, default{})args.accept_riskNumber Show whether client has accepted risk disclaimer, boolean value 1 or 0args.account_opening_reasonString Purpose and reason for requesting the account openingargs.account_turnoverAny The anticipated account turnoverargs.address_cityString Within 35 charactersargs.address_line_1String Within 70 characters.args.address_line_2String Optional field, within 70 characters.args.address_postcodeString Optional field, within 20 characters and may not contain '+'.args.address_stateString Optional field, possible value receive from states_list call.args.affiliate_tokenString Affiliate token, within 32 characters.args.binary_options_trading_experienceAny Binary options trading experienceargs.binary_options_trading_frequencyAny Binary options trading frequencyargs.cfd_trading_experienceAny CFDs trading experienceargs.cfd_trading_frequencyAny CFDs trading frequencyargs.citizenString Country of legal citizenship, 2-letter country code.args.client_typeAny Optional field, indicates whether this is for a client requesting an account with professional status. Defaults to retail.args.date_of_birthString Date of birth format: yyyy-mm-dd.args.education_levelAny Level of Educationargs.employment_industryAny Industry of Employmentargs.employment_statusAny Employment Statusargs.estimated_worthAny Estimated Net Worthargs.first_nameString Within 2-50 characters, use only letters, spaces, hyphens, full-stops or apostrophes.args.forex_trading_experienceAny Forex trading experienceargs.forex_trading_frequencyAny Forex trading frequencyargs.income_sourceAny Income Sourceargs.last_nameString Within 2-50 characters, use only letters, spaces, hyphens, full-stops or apostrophes.args.net_incomeAny Net Annual Incomeargs.new_account_maltainvestNumber Must be 1args.occupationAny Occupationargs.other_instruments_trading_experienceAny Trading experience in other financial instrumentsargs.other_instruments_trading_frequencyAny Trading frequency in other financial instrumentsargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.phoneString Within 8-35 digits, allowing '+' in front, numbers, hyphens or space.args.place_of_birthString Place of birth, 2-letter country code.args.req_idNumber Optional field to map request to responseargs.residenceString 2-letter country code, possible value receive from residence_list call.args.salutationAny Accept any value in enum list.args.secret_answerString Answer to secret question, within 4-50 characters.args.secret_questionAny Accept any value in enum list.args.source_of_wealthAny Source of wealthargs.tax_identification_numberString Tax identification number. Only applicable for real money account. Required for maltainvest landing company.args.tax_residenceString Residence for tax purpose. Comma separated iso country code if multiple jurisdictions. Only applicable for real money account. Required for maltainvest landing company.
argsObject (optional, default{})args.account_opening_reasonString Purpose and reason for requesting the account openingargs.account_turnoverAny The anticipated account turnoverargs.address_cityString Within 35 charactersargs.address_line_1String -args.address_line_2String Optional field, within 70 characters.args.address_postcodeString Optional field, within 20 characters and may not contain '+'.args.address_stateString Optional field, possible value receive from states_list call.args.affiliate_tokenString Affiliate token, within 32 characters.args.citizenAny Country of legal citizenship, 2-letter country code.args.client_typeAny Optional field, indicates whether this is for a client requesting an account with professional status. Defaults to retail.args.currencyAny Optional field to set currency of the account. List of supported currencies can be acquired with 'payout_currencies' callargs.date_of_birthString Date of birth format: yyyy-mm-dd.args.first_nameString Within 2-50 characters, use only letters, spaces, hyphens, full-stops or apostrophes.args.last_nameString Within 2-50 characters, use only letters, spaces, hyphens, full-stops or apostrophes.args.new_account_realNumber Must be 1args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.phoneString Within 8-35 digits, allowing '+' in front, numbers, hyphens or space.args.place_of_birthString Place of birth, 2-letter country code.args.req_idNumber Optional field to map request to responseargs.residenceString 2-letter country code, possible value receive from residence_list call.args.salutationAny Accept any value in enum list.args.secret_answerString Answer to secret question, within 4-50 characters. Required for new account and existing client details will be used if client open another account.args.secret_questionAny Accept any value in enum list. Required for new account and existing client details will be used if client open another account.args.tax_identification_numberString Tax identification number. Only applicable for real money account. Required for maltainvest landing company.args.tax_residenceString Residence for tax purpose. Comma separated iso country code if multiple jurisdictions. Only applicable for real money account. Required for maltainvest landing company.
argsObject (optional, default{})args.affiliate_tokenString [Optional] Affiliate token, within 32 characters.args.client_passwordString Password (length within 6-25 chars, accepts any printable ASCII character).args.date_first_contactString [Optional] Date of first contact, format: yyyy-mm-dd in GMT timezone.args.gclid_urlString [Optional] Google Click Identifier to track source.args.new_account_virtualNumber Must be 1.args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.args.residenceString 2-letter country code (obtained from residence_list call).args.signup_deviceAny [Optional] Show whether user has used mobile or desktop.args.utm_campaignString [Optional] Identifies a specific product promotion or strategic campaign such as a spring sale or other promotions.args.utm_mediumString [Optional] Identifies the medium the link was used upon such as: email, CPC, or other methods of sharing.args.utm_sourceString [Optional] Identifies the source of traffic such as: search engine, newsletter, or other referral.args.verification_codeString Email verification code (received from a verify_email call, which must be done first).
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})args.currencyString [Optional] If specified, only payment agents that supports that currency will be returned (obtained from payout_currencies call).args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.paymentagent_listString Client's 2-letter country code (obtained from residence_list call).args.req_idNumber [Optional] Used to map request to response.
argsObject (optional, default{})args.amountNumber -args.currencyString -args.descriptionString Optional field for remarks about the transfer.args.dry_runNumber If 1, just do validationargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.paymentagent_transferNumber -args.req_idNumber Optional field to map request to responseargs.transfer_toString The transfer_to loginid
argsObject (optional, default{})args.amountNumber -args.currencyString -args.descriptionString Optional field for remarks about the withdraw. Only letters, numbers, space, period, comma, - ' are allowed.args.dry_runNumber If 1, just do validationargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.paymentagent_loginidString The payment agent loginid received from the paymentagent_list callargs.paymentagent_withdrawNumber -args.req_idNumber Optional field to map request to responseargs.verification_codeString Email verification code (received from a verify_email call, which must be done first)
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})args.date_fromString Optional start date (epoch or YYYY-MM-DD)args.date_toString Optional end date (epoch or YYYY-MM-DD)args.descriptionNumber If set to 1, will return full contracts description.args.limitNumber Apply upper limit to count of transactions receivedargs.offsetNumber Skip this many transactionsargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.profit_tableNumber Must be 1.args.req_idNumber Optional field to map request to responseargs.sortString sort direction, default DESC
argsObject (optional, default{})args.amountNumber Proposed contract payout or stake, or multiplier (for lookbacks).args.barrierString Barrier for the contract (or last digit prediction for digit contracts). Contracts less than 24 hours in duration would need a relative barrier (barriers which need +/-), where entry spot would be adjusted accordingly with that amount to define a barrier, except for Volatility Indices as they support both relative and absolute barriers. Not needed for lookbacks.args.barrier2String Low barrier for the contract (for contracts with two barriers). Contracts less than 24 hours in duration would need a relative barrier (barriers which need +/-), where entry spot would be adjusted accordingly with that amount to define a barrier, except for Volatility Indices as they support both relative and absolute barriers. Not needed for lookbacks.args.basisAny Indicates whether amount is 'payout' or 'stake' for binary options, and 'multiplier' for lookbacks.args.contract_typeAny The proposed contract typeargs.currencyString This can only be the account-holder's currency (obtained from payout_currencies call).args.date_expiryNumber Epoch value of the expiry time of the contract. Either date_expiry or duration is required.args.date_startNumber [Optional] Indicates epoch value of the starting time of the contract. If left empty, the start time of the contract is now.args.durationNumber Duration quantity. Either date_expiry or duration is required.args.duration_unitAny [Optional] Duration unit - s(seconds), m(minutes), h(hours), d(days), t(ticks).args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.product_typeAny The product type.args.proposalNumber Must be 1.args.req_idNumber [Optional] Used to map request to response.args.selected_tickNumber The tick that is predicted to have the highest/lowest value - for tickhigh and ticklow contracts.args.subscribeAny [Optional] 1 - to initiate a realtime stream of prices. Note that tick trades (without a user-defined barrier), digit trades and less than 24 hours at-the-money contracts for the following underlying symbols are not streamed: R_10, R_25, R_50, R_75, R_100, RDBULL, RDBEAR (this is because their price is constant).args.symbolString The short symbol name (obtained from active_symbols call).args.trading_period_startNumber Required only for multi-barrier trading. Defines the epoch value of the trading period start time.
argsObject (optional, default{})args.amountNumber Proposed contract payout or stake value.args.barriersAny Array of barrier(s) for the contract.args.basisAny Indicate whether amount is 'payout' or 'stake'.args.contract_typeAny One or two valid contract-types.args.currencyString This can only be the account-holder's currency.args.date_expiryNumber Epoch value of the expiry time of the contract. You must either specify date_expiry or duration.args.date_startNumber [Optional] Indicates epoch value of the starting time of the contract. If left empty, the start time of the contract is now.args.durationNumber Duration quantity.args.duration_unitAny [Optional] Duration unit - s(seconds), m(minutes), h(hours), d(days), t(ticks).args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.product_typeAny [Optional] If you specify this field, only contracts tradable through that contract type will be returned.args.proposal_arrayNumber Must be 1.args.req_idNumber [Optional] Used to map request to response.args.subscribeAny [Optional] 1 - to initiate a realtime stream of prices. Note that tick trades (without a user-defined barrier), digit trades and less than 24 hours at-the-money contracts for the following underlying symbols are not streamed: R_10, R_25, R_50, R_75, R_100, RDBULL, RDBEAR (this is because their price is constant).args.symbolString Symbol code.args.trading_period_startNumber Required only for multi-barrier trading. Defines the epoch value of the trading period start time.
argsObject (optional, default{})args.contract_idNumber Contract id received from a Portfolio request. If not set, you will receive stream of all open contracts.args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.proposal_open_contractAny Must be 1args.req_idNumber Optional field to map request to responseargs.subscribeNumber 1 - to stream
argsObject (optional, default{})
argsObject (optional, default{})args.date_fromNumber Start date of the reportargs.date_toNumber End date of the reportargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output fieldargs.report_typeString Type of report to be sent to client's registered e-mail addressargs.req_idNumber Optional field to map request to responseargs.request_reportNumber Must be 1.
argsObject (optional, default{})args.date_of_birthString Date of birth format: yyyy-mm-dd. Only required for clients with real-money accounts.args.new_passwordString New password for validation (length within 6-25 chars, accepts any printable ASCII characters, need to include capital and lowercase letters with numbers). Password strength is evaluated with: http://archive.geekwisdom.com/js/passwordmeter.jsargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.reset_passwordNumber -args.verification_codeString Email verification code (received from a verify_email call, which must be done first)
argsObject (optional, default{})
argsObject (optional, default{})
argsObject (optional, default{})args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.priceNumber Minimum price at which to sell the contract, or '0' for 'sell at market'args.req_idNumber Optional field send in request to map to response, present only when request contains req_idargs.sellNumber Pass contract_id received from the Portfolio call
argsObject (optional, default{})args.passthroughAny Optional field used to pass data through the websocket API. May be retrieved via the echo_req output field.args.priceNumber Minimum price at which to sell the contract, or '0' for 'sell at market'args.req_idNumber Optional field send in request to map to response, present only when request contains req_idargs.sell_contract_for_multiple_accountsNumber -args.shortcodeString An internal ID used to identify the contract which was originally bought. This is returned from the buy and buy_for_multiple_accounts callsargs.tokensAny Authorisation tokens which select the accounts to sell use for the affected accounts
argsObject (optional, default{})
argsObject (optional, default{})args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.referrerString The URL of the web page where the Web SDK will be used.args.req_idNumber [Optional] Used to map request to response.args.serviceString The service name to retrieve the token for.args.service_tokenNumber Must be 1.
argsObject (optional, default{})args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.set_account_currencyAny Currency of the account. List of supported currencies can be acquired with 'payout_currencies' call
argsObject (optional, default{})args.account_turnoverAny The anticipated account turnoverargs.binary_options_trading_experienceAny Binary options trading experienceargs.binary_options_trading_frequencyAny Binary options trading frequencyargs.cfd_trading_experienceAny CFDs trading experienceargs.cfd_trading_frequencyAny CFDs trading frequencyargs.education_levelAny Level of Educationargs.employment_industryAny Industry of Employmentargs.employment_statusAny Employment Statusargs.estimated_worthAny Estimated Net Worthargs.forex_trading_experienceAny Forex trading experienceargs.forex_trading_frequencyAny Forex trading frequencyargs.income_sourceAny Income Sourceargs.net_incomeAny Net Annual Incomeargs.occupationAny Occupationargs.other_instruments_trading_experienceAny Trading experience in other financial instrumentsargs.other_instruments_trading_frequencyAny Trading frequency in other financial instrumentsargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.set_financial_assessmentNumber Must be 1args.source_of_wealthAny Source of wealth
argsObject (optional, default{})args.exclude_untilAny Exclude me from the website (for a minimum of 6 months, up to a maximum of 5 years). Note: uplifting this self-exclusion may require contacting the company.args.max_30day_lossesAny 30-day limit on lossesargs.max_30day_turnoverAny 30-day turnover limitargs.max_7day_lossesAny 7-day limit on lossesargs.max_7day_turnoverAny 7-day turnover limitargs.max_balanceAny Maximum account cash balanceargs.max_depositAny Deposit limit.args.max_deposit_end_dateAny Exclude me from making deposits when the cumulative sum of deposits exceeds specified deposit limit.args.max_lossesAny Daily limit on lossesargs.max_open_betsAny Maximum number of open positionsargs.max_turnoverAny Daily turnover limitargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.session_duration_limitAny Session duration limit, in minutesargs.set_self_exclusionNumber -args.timeout_untilAny Exclude me from the website (for up to 6 weeks). Requires time in epoch format. Note: unlike exclude_until, this self-exclusion will be lifted automatically at the expiry of the timeout period.
argsObject (optional, default{})args.account_opening_reasonString Purpose and reason for requesting the account opening. Only applicable for real money account. Required for clients that have not set it yet. Can only be set once.args.address_cityString Note: not applicable for virtual account. Required field for real money account.args.address_line_1String Note: not applicable for virtual account. Required field for real money account.args.address_line_2Any Note: not applicable for virtual account. Optional field for real money account.args.address_postcodeString Note: not applicable for virtual account. Optional field for real money account.args.address_stateString Note: not applicable for virtual account. Optional field for real money account.args.allow_copiersNumber Boolean value 1 or 0, indicating permission to allow others to follow your trades. Note: not applicable for Virtual account. Only allow for real money account.args.citizenAny Country of legal citizenship, 2-letter country code.args.date_of_birthString Date of birth format: yyyy-mm-dd (can only be changed on unauthenticated svg accounts).args.email_consentNumber Boolean value 1 or 0, indicating permission to use email address for any contact which may include marketingargs.first_nameString Within 2-50 characters, use only letters, spaces, hyphens, full-stops or apostrophes (can only be changed on unauthenticated svg accounts).args.last_nameString Within 2-50 characters, use only letters, spaces, hyphens, full-stops or apostrophes (can only be changed on unauthenticated svg accounts).args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.phoneAny Note: not applicable for virtual account. Required field for real money account and within 8-35 digits, allowing '+' in front, numbers, hyphens or space.args.place_of_birthString Place of birth, 2-letter country code.args.req_idNumber Optional field to map request to responseargs.request_professional_statusNumber Required when client wants to be treated as professional. Applicable for financial accounts only.args.residenceAny 2-letter country code. Note: not applicable for real money account. Only allow for Virtual account without residence set.args.salutationAny Accept any value in enum list (can only be changed on unauthenticated svg accounts).args.secret_answerString Answer to secret question, within 4-50 characters. Required for new account and existing client details will be used if client opens another account.args.secret_questionAny Accept any value in enum list. Required for new account and existing client details will be used if client opens another account.args.set_settingsNumber -args.tax_identification_numberString Tax identification number. Only applicable for real money account. Required for maltainvest landing company.args.tax_residenceString Residence for tax purpose. Comma separated iso country code if multiple jurisdictions. Only applicable for real money account. Required for maltainvest landing company.
argsObject (optional, default{})args.action_typeString Optional filter for statement (deposit,withdrawal,buy,sell)args.date_fromNumber Optional start date (epoch)args.date_toNumber Optional end date (epoch)args.descriptionNumber If set to 1, will return full contracts description.args.limitNumber Apply upper limit to count of transactions receivedargs.offsetNumber Skip this many transactionsargs.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.statementNumber Must be 1.
argsObject (optional, default{})
argsObject (optional, default{})args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.args.subscribeAny If set to 1, will send updates whenever a new tick is received.args.ticksAny The short symbol name or array of symbols (obtained from active_symbols call).
argsObject (optional, default{})args.adjust_start_timeNumber [Optional] 1 - if the market is closed at the end time, or license limit is before end time, adjust interval backwards to compensate.args.countNumber An upper limit on ticks to receive.args.endString Epoch value representing the latest boundary of the returned ticks. If "latest" is specified, this will be the latest available timestamp.args.granularityNumber Only applicable for style : "candles". Candle time-dimension width setting. Allowed values 60, 120, 180, 300, 600, 900, 1800, 3600, 7200, 14400, 28800, 86400 (default: '60').args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.args.startNumber Epoch value representing the earliest boundary of the returned ticks (For styles: 'ticks', this will default to 1 day ago. For styles: 'candle', it will default to 1 day ago if count or granularity is undefined).args.styleAny The tick-output style.args.subscribeAny [Optional] 1 - to send updates whenever a new tick is received.args.ticks_historyString Short symbol name (obtained from the active_symbols call).
argsObject (optional, default{})
argsObject (optional, default{})args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.tnc_approvalNumber Must be 1args.ukgc_funds_protectionNumber for ASK_UK_FUNDS_PROTECTION in cashier
argsObject (optional, default{})
argsObject (optional, default{})args.landing_companyAny [Optional] If specified, will return only the underlyings for the specified landing company.args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.args.trading_durationsNumber Must be 1.
argsObject (optional, default{})args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.args.trading_timesString Date to receive market opening times for. (yyyy-mm-dd format. 'today' can also be specified).
argsObject (optional, default{})args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.subscribeNumber If set to 1, will send updates whenever there is an update to transactions. If not to 1 then it will not return any records.args.transactionAny Must be 1.
argsObject (optional, default{})args.account_fromString The account_from loginidargs.account_toString The account_to loginidargs.accountsAny Optional field to control the list of accounts returned when account_from or account_to is not provided. 'Brief' will only include standard trading accounts and can be faster.args.amountNumber -args.currencyString -args.passthroughAny Optional field, used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber Optional field to map request to responseargs.transfer_between_accountsNumber If account_from or account_to is not provided, we'll just return available accounts.
argsObject (optional, default{})args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.args.typeAny Purpose of the email verification call.args.url_parametersAny -args.verify_emailString Email address to be verified.
argsObject (optional, default{})args.passthroughAny [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.args.req_idNumber [Optional] Used to map request to response.args.subscribeAny [Optional] 1 - to stream the server/website status updates (default = 1)args.website_statusAny Must be 1.
An in memory storage which can be used for caching
Type: Object
An abstract class for immutable objects
propsObject A list of properties to add for the immutable object (optional, default{})
Override to initialize an immutable object asynchronously
Type: Object
durationDurationRangebarriersObject
Type: Object
nameFullNamehas_end_timeBoolean Is end time available for the contract (hardcoded X) )contract_typesArray<String>basesArray<String>forward_startingObjectforward_starting.1564531200DateRange
expiry_typesExpiryType
Extends Immutable
An abstract class for stream objects
args
Listen on updates of a stream
const tick_stream = api.tickStream('R_100');
tick_stream.onUpdate(console.log);
tick_stream.onUpdate().subscribe(console.log);Returns Observable