Table of Contents

Method SetCredentials

Namespace
WhalesSecret.ScriptApiLib
Assembly
WhalesSecret.ScriptApiLib.dll

SetCredentials(IApiIdentity)

Sets credentials for the API. It's only possible to set credentials for each exchange market once.

public void SetCredentials(IApiIdentity apiIdentity)

Parameters

apiIdentity IApiIdentity

API identity represents an account on ExchangeMarket.

The caller stops being the owner of this object.

Exceptions

InvalidStateException

Thrown when the API identity is not valid.

AlreadyExistsException

Thrown when API identity has already been set for the given exchange market.