Name: dx-examples-api
Owner: GNOSIS
Description: Example and documentation on how to use the Dutch X API.
Created: 2018-05-02 13:20:57.0
Updated: 2018-05-21 12:13:18.0
Pushed: 2018-05-21 12:13:17.0
Homepage: null
Size: 50
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a simple project that shows how to use the Dutch X API.
To get started, you just have to make a regular REST call using any http client.
For example, in node you could use got to make the http requests:
add got --save # Or: npm install got --save
Then we can invoke any of the Api operations.
For example, to get the complete list of tokens pairs (markets) that has been
added to the Dutch X we can use the /markets
endpoint:
= require('got');
t { body: markets } = await got('https://dx-services.dev.gnosisdev.com/api/v1/markets', {
on: true
The complete example can be seen in here.
You can run it with:
start # Or: npm start
We should see as a result the list of tokens:
For API documentation, please go to: https://dx-services.dev.gnosisdev.com/
For aditional information and for reference, check out the following repositories: