tradable-core

1.23
tradable .addInstrumentIdToUpdates .addOrModifyProtections .addOrModifyProtectionsForAccount .addOrModifyStopLoss .addOrModifyStopLossForAccount .addOrModifyTakeProfit .addOrModifyTakeProfitForAccount .authenticate .authenticateWithCredentials .authenticateWithWindow .calculateExpectedProfitOrLoss .calculatePipDistance .calculatePipSize .calculatePositionSizeForRiskAmount .calculatePositionSizeForRiskPercentage .cancelOrder .cancelOrderForAccount .cancelProtections .cancelProtectionsForAccount .cancelStopLoss .cancelStopLossForAccount .cancelStopLossOnOrder .cancelStopLossOnOrderForAccount .cancelTakeProfit .cancelTakeProfitForAccount .cancelTakeProfitOnOrder .cancelTakeProfitOnOrderForAccount .closeAllPositions .closeAllPositionsForAccount .closePosition .closePositionForAccount .createForexDemoAccount .createStocksDemoAccount .enableWithAccessToken .getAccountById .getAccounts .getAppInfo .getBrokers .getCandles .getCandlesForAccount .getInstrumentFromBrokerageAccountSymbol .getInstrumentFromId .getInstrumentFromSymbol .getInstrumentsFromIds .getInstrumentsFromIdsForAccount .getLastDailyClose .getMetrics .getMetricsForAccount .getOpenPositions .getOpenPositionsForAccount .getOrderById .getOrderByIdForAccount .getOrders .getOrdersForAccount .getPendingOrders .getPendingOrdersForAccount .getPositionById .getPositionByIdForAccount .getPositions .getPositionsForAccount .getPrices .getPricesForAccount .getRemainingTokenMillis .getSnapshot .getSnapshotForAccount .getUser .initializeWithToken .modifyOrderPrice .modifyOrderPriceForAccount .modifyProtectedOrder .modifyProtectedOrderForAccount .off .on .onAccountSwitch .onAccountUpdated .onEmbedReady .onError .onTokenExpired .onTokenWillExpire .placeLimitOrder .placeLimitOrderForAccount .placeMarketOrder .placeMarketOrderForAccount .placeProtectedOrder .placeProtectedOrderForAccount .placeStopOrder .placeStopOrderForAccount .reducePositionToAmount .reducePositionToAmountForAccount .refreshAuthentication .reLogin .reLoginForAccount .removeInstrumentIdFromUpdates .roundAmount .roundAmountWithIncrement .roundPrice .roundPriceWithIncrement .searchInstruments .searchInstrumentsForAccount .setAccountUpdateFrequencyMillis .setExternalId .setSelectedAccount .showApprovalPage .showApprovalPageInWindow .showBrokerSignUpPage .showBrokerSignUpPageInWindow .showLoginPage .showLoginPageInWindow .signOut .startCandleUpdates .stopCandleUpdates
Welcome to the Tradable JS documentation. Tradable is an open API to easily build financial trading features into any app, through any brokerage. This is the documentation for the Tradable JavaScript SDK, which offers 2 kits:
  • core: Lightweight wrapper of the Tradable API that will make the integration with it really easy.
  • ui-kit: See here (optional)

This site is a full specification with examples of what you can do with Tradable Core, but if you haven't had a look at it yet, we recommend reading the Getting Started guide first.

NOTE! The oauth flow doesn't work properly in this documentation site for the codepen examples, for the best experience please see the examples on Codepen.io, you can do that clicking on the "Edit on Codepen" link

tradable

Properties