Caplin Trader 4.8.0

Class: module:caplin/services/providers/OpenPermissionService

module:caplin/services/providers/OpenPermissionService

Constructor

new module:caplin/services/providers/OpenPermissionService()

Constructs a caplin.services.providers.OpenPermissionService. The caplin.services.providers.OpenPermissionService returns ALL to all permission requests. You may need to provide permission sets so that that the OpenPermissionService can return lists when they are requested (for example, currency pairs). You can achieve this by using the module:caplin/services/providers/OpenPermissionService#addPermissionSet method.

Methods

addPermissionSet(sNamespace, pPermissionSet)

Adds a permission set for the specified namespace, for example: oPermissionService.addPermissionSet("CurrencyPair", ["GBPUS", "GBPAUD"]);
Parameters:
Name Type Description
sNamespace String The namespace for the permission set.
pPermissionSet Array The list of permissions to return for the namespace.