Simple Systemtrading - FAQ's & Documentation
  • Welcome
  • FAQs
    • SST Website FAQs
      • Free stuff FAQ
        • Where can I find the FreeBundle?
      • SST Account Page FAQ
      • Payments & Billing FAQ
      • Services FAQ
      • Privacy FAQ
    • Sierra Chart FAQs
      • Sync your Clock
      • What is a SubGraph?
      • What are simple alert conditions?
      • Where can I find documentation on a study?
      • How to add an ACS Button to a control bar?
  • SST Services
    • Custom Development
    • White Label SST Studies
      • API Reference
    • Automated Trading Setups
    • Connect Sierra to your service
    • Supporting Trading Groups
  • Study Documentation
    • To follow
Powered by GitBook
On this page

Was this helpful?

  1. SST Services
  2. White Label SST Studies

API Reference

A simple API to manage access to a white-label study bundle

PreviousWhite Label SST StudiesNextAutomated Trading Setups

Last updated 3 years ago

Was this helpful?

This API is only available for API key holders. An API key will be shared as part of the white-label deal. This API is as well.

Endpoint

The exact white-label API endpoint from will be shared with the client when an agreement is made.

Authorization

ApiKeyAuth (apiKey)

An API key is needed to authorize requests. An API key will be shared as part of the white-label deal. The API key will need to be placed in the header to authenticate all the requests.

Name: x-api-key

In: header

Value: somerandomapikeythatfrederikwillprovide

Available white-label API Calls

Getting the study bundle name that is under management for the api key that is used. This bundle name is also visible for SC accounts with access inside the SC custom study list. This name can be used to provide instructions to SC users on where they can find the study bundle after they are in the access list.

Getting the total number of licenses under management. This is the number of licenses that can be managed within the white-label deal. If you want to raise this number get in touch with Frederik.

Getting the number of licenses used. This is the number of SC accounts that are currently assigned access to the white-label study bundle.

Getting the number of licenses that are currently available within the agreed white-label deal. This is the number of SC accounts that still can be added to the access list.

Get a full list of SC accounts that are currently on the access list for the white-label study bundle. The output will be a JSON array filled with the current SC accounts on the access list and a count value of the total number of SC accounts on the list.

Add a SC user to the access list of the white-label study bundle. The SC account provided in the POST body will be used in an attempt to add it to the access list. The POST body needs to be JSON.

{
  "sc_account": "ac12345"
}

If this call was successful the SC user will need to restart SC to automatically download the study bundle file. The SC user can make use of the study for as long as the user is on the access list. If this attempt was unsuccessful the reason will be displayed in the error message.

The SC user can find their SC account name by going to SC menu: Help >> About. The name will be displayed in the pop-up window. The full displayed name should be used, the name is not case-sensitive.

Update a SC user on the access list of the white-label study bundle that is under management for the used api-key. This call can only be used when an user is already present on the access list. The POST body needs to be JSON.

{
  "sc_account": "ac12345",
  "old_sc_account": "ac12345"
}

A normal use case would be when a user has changed SC account and needs access the the study bundle updated. In that case the update call can be used. Alternatively one could also call remove for the old SC account and add for the new account. The result of this update call (success or error) will be displayed in the output message.

Remove a SC user from the access list of the white-label study bundle that is under management for the used api key. The POST body needs to be JSON.

{
  "sc_account": "ac12345"
}

Removing a SC account from the access list will result in no longer having access to the custom study bundle. The study file will still be present for the SC user, but can no longer be used. If the study is used there will be an error message in the SC message log to explain the procedure to get access. The result of this remove call (success or error) will be displayed in the output message. This api does not keep track of SC accounts that were previously on the access list.

documented here
api.simplesystemtrading.com

get the study bundle name under management for this api key

get

Getting the study bundle name that is under management for the api key that is used. This bundle name is also visible for SC accounts with access inside the SC custom study list. This name can be used to provide instructions to SC users on where they can find the study bundle after they are in the access list.

Authorizations
Responses
200
OK
application/json
get
GET /name HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Accept: */*
200

OK

{
  "name": "Your_Own_Bundle_Name"
}

get the total number of licenses under management

get

Getting the total number of licenses under management. This is the number of licenses that can be managed within the white-label deal. If you want to raise this number get in touch with Frederik.

Authorizations
Responses
200
OK
application/json
get
GET /licenses HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Accept: */*
200

OK

{
  "number": 10
}

get the number of licenses used

get

Getting the number of licenses used. This is the number of SC accounts that are assigned access to the white-label study bundle.

Authorizations
Responses
200
OK
application/json
get
GET /usage HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Accept: */*
200

OK

{
  "number": 5
}

get the number of licenses available

get

Getting the number of licenses that are currently available within the agreed white-label deal. This is the number of SC accounts that still can be added to the access list.

Authorizations
Responses
200
OK
application/json
get
GET /available HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Accept: */*
200

OK

{
  "number": 5
}

get all current SC accounts on access list

get

Get a full list of SC accounts that are currently on the access list for the white-label study bundle. The output will be a JSON array filled with the current SC accounts on the access list.

Authorizations
Responses
200
List of SC accounts
application/json
get
GET /scaccounts HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Accept: */*
200

List of SC accounts

{
  "scaccounts": [
    "sc12345"
  ],
  "count": 1
}
  • Endpoint
  • Authorization
  • Available white-label API Calls
  • GETget the study bundle name under management for this api key
  • GETget the total number of licenses under management
  • GETget the number of licenses used
  • GETget the number of licenses available
  • GETget all current SC accounts on access list
  • POSTAdd a SC user to the access list
  • POSTUpdate a SC user on the access list
  • POSTRemove a SC user from the access list

Add a SC user to the access list

post
Authorizations
Body
sc_accountstringOptionalExample: ac12345
Responses
200
Success
application/json
400
Error
application/json
post
POST /add HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "sc_account": "ac12345"
}
{
  "code": 200,
  "message": "Success message"
}

Update a SC user on the access list

post
Authorizations
Body
sc_accountstringOptionalExample: ac12345
old_sc_accountstringOptionalExample: ac12345
Responses
200
Success
application/json
400
Error
application/json
post
POST /update HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "sc_account": "ac12345",
  "old_sc_account": "ac12345"
}
{
  "code": 200,
  "message": "Success message"
}

Remove a SC user from the access list

post
Authorizations
Body
sc_accountstringOptionalExample: ac12345
Responses
200
Success
application/json
400
Error
application/json
post
POST /remove HTTP/1.1
Host: 
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "sc_account": "ac12345"
}
{
  "code": 200,
  "message": "Success message"
}