Asset
Module endpoints
GET /assets
GET /assets
GET
https://api.slyk.io/assets
Returns a paginated list of assets
.
Name
Type
Example
code
=
in
nin
filter[code]=in:usd,eur,btc
enabled
=
filter[enabled]=true
name
like
filter[name]=bit
system
=
filter[system]=false
type
=
in
nin
filter[code]=nin:fiat
The name
filter performs a SQL
query using the like
operator.
GET /assets/:code
GET /assets/:code
GET
https://api.slyk.io/assets/:code
Returns the asset
details of the given code
.
PATCH /assets/:code
PATCH /assets/:code
PATCH
https://api.slyk.io/assets/:code
Patch the asset
details of the given code
.
Name
Type
Required
Description
contract
object
false
Asset contract configuration. Only applicable to crypto assets.
customData
object
false
Can store additional information about the asset.
decimalPlaces
integer
false
Number of decimal places.
enabled
boolean
false
Asset availability.
logo
string
false
Asset logo.
name
string
false
Asset name.
symbol
string
false
Asset symbol. Max length: 16.
POST /assets
POST /assets
POST
https://api.slyk.io/assets
Creates a new asset
.
Name
Type
Required
Description
code
string
true
Asset identifier code. Must only contain digits and letters.
contract
object
false
Asset contract configuration. Only applicable to crypto assets.
customData
object
false
Can store additional information about the asset.
decimalPlaces
integer
true
Number of decimal places.
enabled
boolean
false
Asset availability.
name
string
true
Asset name.
symbol
string
false
Asset symbol. Max length: 16.
type
string
true
Asset type: crypto
, custom
or fiat
.
Last updated