Welcome to our Help Center

Our API, independent of the user interface, enables third-party application providers to:

  • Set up automated trading based on personally selected trading signals, analyze the profitability of the trading account
  • Trade from R StocksTrader accounts (average execution time ~90 ms; tested on Demo accounts).

Specifics

  • Whether you are an independent trader, a small development company, or a financial institution, you can  access our services with no subscription cost.
  • We support trading in Stocks and CFD on Stocks (US, Germany, UK, Switzerland, Italy, and more), Currencies, Indices, Oil, Metals, and Futures  (with access to over 12,000 trading instruments)  – all under a unified interface.

API features

Our users enjoy access to:

  • Order management – place, modify, and cancel orders
  • Deal management – modify and close deals
  • Portfolio – retrieve a list of open deals for the trading account
  • Orders history – retrieve a list of orders for the trading account
  • Account information – retrieve a list of trading accounts and data on P&L for these accounts
  • Instruments – retrieve info about the rules of the trading instrument for the specified account.
Note: no market data stream is provided.


Definitions

  • User is a client who has a real R StocksTrader account.

  • Account is a trading account opened by a User to buy and sell trading instruments on various global markets.

There are three main types of Accounts: Margin Accounts, Cash Accounts, and Investment Savings Accounts (ISK). These types differ in calculation and, accordingly, in the parameters that are returned in this method's response. All these accounts have zero commission.


Some explanations:

  • Margin Account ("margin" structure) involves trading with leverage. It supports up to 12,000 trading instruments including Stocks, CFD on Stocks, CFDs on Indices, CFDs on Forex, CFDs on ETFs, CFDs on Oil, and CFDs on Metals  Parameters returned for this type of Account include Balance, Unrealised P&L, Equity, Margin, and Free margin.

  • Cash Account ("сash" structure) allows trading real US Stocks. It has a 1:1 leverage. The following parameters are available for this Account Type: My portfolio, Investments, and Available to invest.

  • Investment Savings Account (ISK) ("сash" structure) is a special type of account for clients from Sweden for trading listed US stocks and ETFs within a favourable capital tax scheme. It has a Leverage of 1:1. The parameters are returned for this account are: My portfolio, Investments, and Available to invest.

  • An Order is a set of instructions to R StocksTrader to buy or sell an asset on a trader's behalf.

  • The Deal is the result of an executed order. Any executed order opens or closes a deal.

  • The Position results from open and closed deals, including both open and closed deals. We take the rule that "a deal entity" absorbs both a deal and a position (so as soon as there is no open or closed deal under position, the position is terminated). Therefore, we do not use the term "a position entity" for R StocksTrader accounts and for this API accordingly but explain these specifics.

Common features of the implementation of endpoints

  • For the request, the API uses the UTC time zone.

  • For all endpoints data localisation support: English language only.

  • The maximum frequency of requests that return Account state is 1 per 0.5 seconds per User (GET /accounts/{account_id}/instruments/{ticker}, GET /accounts/, GET accounts/{account_id, GET /accounts/{account_id}/orders, GET accounts/{account_id}/deals endpoints

  • There are some conditions for GET /accounts/{account_id}/instruments/{ticker} endpoint: a. need to be used before trading this instrument on a specific Account; do not use it to get details for all trading instruments or b. requires the use of caching.

  • The sufficient frequency of sending GET /instruments is once a day.

  • Session has no expiration, and  depends on the expiration and validity of the API access token.


All useful links:

1. Read how to gain access to the API here.

2. Read how to open demo trading account here. 

3. Find API schema here. 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article