Search
Preparing search index...
The search index is not available
@samuraitruong/coinspot-api
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@samuraitruong/coinspot-api
index
CoinSpotClient
Class CoinSpotClient
Hierarchy
BaseClient
CoinSpotClient
Index
Constructors
constructor
Properties
api
Url
Methods
calculate
Sign
coin
Deposit
get
Request
my
Balance
my
Buy
my
Buy
Cancel
my
Orders
my
Sell
my
Sell
Cancel
orders
orders
History
post
Request
quote
Buy
quote
Sell
Constructors
constructor
new
Coin
Spot
Client
(
apiKey
:
string
, apiSecret
:
string
)
:
CoinSpotClient
Parameters
apiKey:
string
apiSecret:
string
Returns
CoinSpotClient
Properties
api
Url
api
Url
:
string
Methods
calculate
Sign
calculate
Sign<T>
(
data
:
T
)
:
{
postdata
:
string
;
sign
:
string
}
Type parameters
T
Parameters
data:
T
Returns
{
postdata
:
string
;
sign
:
string
}
postdata
:
string
sign
:
string
coin
Deposit
coin
Deposit
(
cointype
:
string
)
:
Promise
<
unknown
>
Parameters
cointype:
string
Returns
Promise
<
unknown
>
get
Request
get
Request<T>
(
apiPath
:
string
)
:
Promise
<
T
>
Type parameters
T
Parameters
apiPath:
string
Returns
Promise
<
T
>
my
Balance
my
Balance
(
)
:
Promise
<
unknown
>
Returns
Promise
<
unknown
>
my
Buy
my
Buy
(
cointype
:
string
, amount
:
number
, rate
:
number
)
:
Promise
<
unknown
>
Parameters
cointype:
string
amount:
number
rate:
number
Returns
Promise
<
unknown
>
my
Buy
Cancel
my
Buy
Cancel
(
id
:
number
)
:
Promise
<
unknown
>
Parameters
id:
number
Returns
Promise
<
unknown
>
my
Orders
my
Orders
(
)
:
Promise
<
unknown
>
Returns
Promise
<
unknown
>
my
Sell
my
Sell
(
cointype
:
string
, amount
:
number
, rate
:
number
)
:
Promise
<
unknown
>
Parameters
cointype:
string
amount:
number
rate:
number
Returns
Promise
<
unknown
>
my
Sell
Cancel
my
Sell
Cancel
(
id
:
number
)
:
Promise
<
unknown
>
Parameters
id:
number
Returns
Promise
<
unknown
>
orders
orders
(
cointype
:
string
)
:
Promise
<
unknown
>
Parameters
cointype:
string
Returns
Promise
<
unknown
>
orders
History
orders
History
(
cointype
:
string
)
:
Promise
<
unknown
>
Parameters
cointype:
string
Returns
Promise
<
unknown
>
post
Request
post
Request<T>
(
url
:
string
, data
?:
{}
)
:
Promise
<
T
>
Type parameters
T
Parameters
url:
string
data:
{}
= ...
[
key:
string
]:
any
Returns
Promise
<
T
>
quote
Buy
quote
Buy
(
cointype
:
string
, amount
:
number
)
:
Promise
<
unknown
>
Parameters
cointype:
string
amount:
number
Returns
Promise
<
unknown
>
quote
Sell
quote
Sell
(
cointype
:
string
, amount
:
number
)
:
Promise
<
unknown
>
Parameters
cointype:
string
amount:
number
Returns
Promise
<
unknown
>
Exports
base-
client
chart-
client
client
index
public-
api-
client
read-
only-
client
types
Chart
Client
Coin
Spot
Client
constructor
api
Url
calculate
Sign
coin
Deposit
get
Request
my
Balance
my
Buy
my
Buy
Cancel
my
Orders
my
Sell
my
Sell
Cancel
orders
orders
History
post
Request
quote
Buy
quote
Sell
Read
Only
Client
Generated using
TypeDoc