Rate

Module endpoints

DELETE /rates/:baseAssetCode/:quoteAssetCode

DELETE http://api.slyk.io/rates/:baseAssetCode/:quoteAssetCode

Deletes the rate between the baseAssetCode and quoteAssetCode.

204 No Content

GET /rates

GET https://api.slyk.io/rates

Returns a paginated list of rates.

Name

Type

Example

baseAssetCode

= in nin

filter[baseAssetCode]=in:usd,eur,btc

quoteAssetCode

= in nin

filter[quoteAssetCode]=nin:usd

rate

= gt gte lt lte

filter[rate]=gte:0.6

GET /rates/:baseAssetCode/:quoteAssetCode

GET https://api.slyk.io/rates/:baseAssetCode/:quoteAssetCode

Returns the rate between the baseAssetCode and quoteAssetCode.

{
  "data": {
    "baseAssetCode": "btc",
    "createdAt": "2019-03-20T14:30:37.483Z",
    "customData": {},
    "metadata": {},
    "quoteAssetCode": "eur",
    "rate": "6199.9000000",
    "updatedAt": "2019-03-20T14:30:37.483Z"
  }
}

PATCH /rates/:baseAssetCode/:quoteAssetCode

PATCH https://api.slyk.io/rates/:baseAssetCode/:quoteAssetCode

Patch the rate between the baseAssetCode and quoteAssetCode.

Name

Type

Required

Description

customData

object

false

Can store additional information about the rate.

rate

string

false

Rate value.

POST /rates

POST https://api.slyk.io/rates

Creates a new rate.

Name

Type

Required

Description

baseAssetCode

string

true

Base asset code.

customData

object

false

Can store additional information about the rate.

quoteAssetCode

string

true

Quote asset code

rate

string

true

Rate value.

Last updated