Chart layout methods
List charts
GET request: charts_storage_url/charts_storage_api_version/charts?client=client_id&user=user_id
Response content
The response is a JSON object containing the following properties:
Property | Description |
---|---|
status # | ok or error |
data # | Data object with the following properties:
|
Save chart
POST request: charts_storage_url/charts_storage_api_version/charts?client=client_id&user=user_id
Request body
Parameter | Description |
---|---|
name | Chart name |
content | Chart content |
symbol | Chart symbol (example: AA ) |
resolution | Chart resolution (example: 1D ) |
Response content
The response is a JSON object containing the following properties:
Parameter | Description |
---|---|
status | ok or error |
id | Unique string identifier of the chart (example: 9163 ) |
Save as chart
POST request: charts_storage_url/charts_storage_api_version/charts?client=client_id&user=user_id&chart=chart_id
Request body
Parameter | Description |
---|---|
name | Chart name |
content | Chart content |
symbol | Chart symbol (example: AA ) |
resolution | Chart resolution (example: 1D ) |
Response content
The response is a JSON object containing the status
property, which may have values of either ok
or error
.
Load chart
GET request: charts_storage_url/charts_storage_api_version/charts?client=client_id&user=user_id&chart=chart_id
Response content
The response is a JSON object containing the following properties:
Property | Description |
---|---|
status # | ok or error |
data # | Data object with the following properties:
|
Delete chart
DELETE request: charts_storage_url/charts_storage_api_version/charts?client=client_id&user=user_id&chart=chart_id
Response content
The response is a JSON object containing the status
property, which may have values of either ok
or error
.