PolychartService
List Owner Published Layers
List drawing layers the owner has published for discovery.
Request
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/polychart/owners/1/published/layers?engineSymbolId=1&limit=100&pageToken=eyJvZmZzZXQiOjEwMH0' \ --header 'Accept: */*' \ --header 'X-API-KEY-ID: YOUR_API_KEY_ID' \ --header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \ --header 'X-API-SIGNATURE: YOUR_API_SIGNATURE'
Responses
{
"layers": [
{
"description": "Example configuration for the API playground.",
"layer": {
"colorRgba": 1,
"engineSymbolId": 1,
"isLocked": false,
"isVisible": false,
"layerId": "1",
"name": "BTC Support and Resistance",
"ownerId": "1",
"revision": "1",
"sortHint": 1,
"updatedAtMs": "1",
"useLayerColor": false
},
"publishedAtMs": "1",
"tags": [
"spot"
],
"title": "My Trading Board"
}
],
"nextPageToken": "eyJvZmZzZXQiOjIwMH0"
}Owner account whose published layers should be listed.
Optional market filter.
Maximum number of layers to return. Defaults to 100 when omitted; maximum is 500.
Opaque keyset cursor from a previous response. The cursor is exclusive and bound to owner, market filter, and newest-published sort order.
Account that owns the layer.
1Layer identifier unique within the owner account.
1Engine symbol identifier for the market this layer belongs to.
1Human-readable layer name.
BTC Support and ResistanceOwner-defined ordering hint for the layer list.
1Owner-level style defaults. Packed layer color in 0xAARRGGBB format.
1True when drawings should use the layer color by default.
falseTrue when clients should prevent editing drawings in this layer.
falseTrue when the layer is visible by default.
falseMonotonic per layer; increments on any committed change to the layer or its drawings.
1Server-assigned commit timestamp in milliseconds since epoch (UTC).
1Public display title.
My Trading BoardPublic description shown with the layer.
Example configuration for the API playground.Public tags used for grouping or filtering.
["spot"]Publication time in milliseconds since epoch (UTC).
1Opaque cursor for the next page. Empty when no more results exist.
eyJvZmZzZXQiOjIwMH0| Key | Status | Error | When |
|---|---|---|---|
| unauthenticated | 401 | Unauthenticated | Authentication required. |
| permission-denied | 403 | Permission Denied | Permission denied. |
| invalid-argument | 400 | Invalid Argument | Invalid argument. |
| not-found | 404 | Not Found | Not found. |
| unavailable | 503 | Unavailable | Service unavailable. |