Home Notices Documents Classes Download Others Rice
Classes  >  bitbankapi  >  bitbankapi(string,string,int)
bitbankapi class : bitbankapi(string,string,int) fitter

Description

Gets an instance that has been set api key, secret key, and timeout span.

Syntax

new bitbankapi(string,string,int)

Arguments

ClassNameDescription
stringapiKeyapi key.
stringsecretKeysecret key.
inttimeOutTimeout span. The unit is milliseconds.

Return value

ClassDescription
bitbankapiAn instance that has been set api key, secret key, and timeout span.

Sample code

1:

string apiKey = "3622c294-zs5m-587w-vv7j-sdf454h1sdbl";

2:

string secretKey = "4be789k3-dd7r-9d23-jy45-qng4c83hjk1g";

3:

bitbankapi bitbankapiIns = new bitbankapi(apiKey, secretKey, 1000); // 1000 millisecond

Notes

The instance returned by this fitter has been initialized and has been set api key, secret key, and timeout span.

The timeout span should be specified in milliseconds.

The default for the timeout span is 100000 milliseconds.

Links for reference

Copyright © Rice All rights reserved.