YOLO exchange rate API is live

Yaron Velner
yoloswap
Published in
2 min readMay 22, 2019

Since we went live last week, we got bulk of requests from users for a public API to programmatically fetch prices from YOLO exchange. Today we are proud to announce that the API is live at https://api.yoloswap.com/.

Currently the API consists of one command, namely, getRatewith the following syntax:

Name       | Type   | Required | Description              | Example
-------------------------------------------------------------------
srcSymbol | String | True | Source token symbol | EOS
destSymbol | String | True | Destination token symbol | IQ
srcAmount | Number | True | Source amount | 12.012

A successful response returns the conversion rate as a data and a successful return code (200).

{
status: {
code: 200,
message: "success"
},
data: 1878.6507
}

For example, to check the conversion rate of EOS to IQ for 12.012 EOS quantity is returned by calling https://api.yoloswap.com/getRate?srcSymbol=EOS&srcAmount=12.012&destSymbol=IQ

A response with data=1878.6507 indicates that for 12.012 EOS, a total amount of 1878.6507 * 12.012 =22566.3522 IQ tokens will be given.

Currently, the supported tokens are: EOS, IQ, CHEX, BNT, EMT, PTI, ARN, and INF. Also, only conversion between EOS to token or token to EOS is supported. We will update the api whenever a new token is listed on yoloswap.com.

The API implementation is open source and can be found at https://github.com/yoloswap/YoloSwap

We welcome our community to give us feedback and feature requests in the API repository and in our other public channels.

The YOLO team is committed to building useful tools like this API and many more to come. This comes as part of our commitment to add value and liquidity to the projects in our network.

YOLO Beta Site is Live: https://yoloswap.com/

--

--