gnosis/dx-examples-api

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

API Usage - Dutch X

This is a simple project that shows how to use the Dutch X API.

Getting started

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:

alt text

Documentation

For API documentation, please go to: https://dx-services.dev.gnosisdev.com/

Aditional information

For aditional information and for reference, check out the following repositories:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.