Skip to content

Commit

Permalink
added documentation for smaller adapters used in composites
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Apr 1, 2021
1 parent 3516ab5 commit 2fc67f9
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 74 deletions.
35 changes: 25 additions & 10 deletions packages/sources/deribit/README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
# Chainlink External Adapter for Deribit

## Input Params
### Input Params

- `base`, `from`, or `coin`: The symbol of the currency to query
<!-- - `base`, `from`, or `coin`: The symbol of the currency to query
- `quote`, `to`, or `market`: The symbol of the currency to convert to
- `endpoint`: Optional endpoint param
- `endpoint`: Optional endpoint param -->

## Output
| Required? | Name | Description | Options | Defaults to |
| :-------: | :-----------------------: | :---------------------------------: | :-----: | :---------: |
|| `base`, `from`, or `coin` | The symbol of the currency to query | | |

### Sample Input

```json
{
"id": "1",
"data": {
"base": "ETH"
}
}
```

## Sample Output

```json
{
"jobRunID": "278c97ffadb54a5bbb93cfec5f7b5503",
"data": {
"price": 77777.77,
"result": 77777.77
},
"statusCode": 200
"jobRunID": "1",
"result": 66.5046281503906,
"statusCode": 200,
"data": {
"result": 66.5046281503906
}
}
```
15 changes: 13 additions & 2 deletions packages/sources/dxfeed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| :-------: | :----------: | :--------------------------: | :-----: | :----------------------------------------: |
|| API_USERNAME | | | |
|| API_PASSWORD | | | |
| 🟡 | API_ENDPOINT | The endpoint for your dxFeed | | `https://tools.dxfeed.com/webservice/rest` |
| | API_ENDPOINT | The endpoint for your dxFeed | | `https://tools.dxfeed.com/webservice/rest` |

---

Expand Down Expand Up @@ -35,7 +35,18 @@ TSLA ➡️ 'TSLA:BFX'
TSLAX ➡️ 'TSLA.US:TEI'
```

### Output
### Sample Input

```json
{
"id": 1,
"data": {
"base": "FTSE"
}
}
```

### Sample Output

```json
{
Expand Down
57 changes: 37 additions & 20 deletions packages/sources/genesis-volatility/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,48 @@
# Chainlink External Adapter for Genesis Volatility

## Input Params
### Input Params

- `base`, `from`, `coin` or `symbol`: The symbol of the currency to query
- `key`, `result`, or `period`: The key to get the result from

## Output
| Required? | Name | Description | Options | Defaults to |
| :-------: | :---------------------------------: | :---------------------------------: | :-----: | :---------: |
|| `base`, `from`, `coin`, or `symbol` | The symbol of the currency to query | | |
|| `key`, `result`, or `period` | The key to get the result from | | |

### Sample Input

```json
{
"id": "1",
"data": {
"symbol": "ETH",
"result": "oneDayIv"
}
}
```

### Sample Output

```json
{
"jobRunID":"1",
"data":{
"data":{
"ChainlinkIv":[
{
"oneDayIv":65.07,
"twoDayIv":69.29,
"sevenDayIv":70.53,
"fourteenDayIv":73.1,
"twentyOneDayIv":74.93,
"twentyEightDayIv":76.32
}
]
},
"result":76.32
},
"result":76.32,
"statusCode":200
"jobRunID": "1",
"data": {
"data": {
"ChainlinkIv": [
{
"oneDayIv": 65.07,
"twoDayIv": 69.29,
"sevenDayIv": 70.53,
"fourteenDayIv": 73.1,
"twentyOneDayIv": 74.93,
"twentyEightDayIv": 76.32
}
]
},
"result": 76.32
},
"result": 76.32,
"statusCode": 200
}
```
51 changes: 32 additions & 19 deletions packages/sources/oilpriceapi/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,41 @@
# Chainlink OilpriceAPI External Adapter

## Input Params
- `type`, `base`, `asset`, `from`: The type of oil to get the price from (required)
- `endpoint`: The endpoint to use (optional)
### Input Params

| Required? | Name | Description | Options | Defaults to |
| :-------: | :--------------------------------: | :-----------------------------------: | :------------------: | :-------------: |
|| `type`, `base`, `asset`, of `from` | The type of oil to get the price from | `bz`, `brent`, `wti` | |
| | `endpoint` | The endpoint to use | | `prices/latest` |

## Output
### Sample Input

```json
{
"jobRunID":"278c97ffadb54a5bbb93cfec5f7b5503",
"data":{
"status":"success",
"data":{
"price":26.71,
"formatted":"$26.71",
"currency":"USD",
"code":"BRENT_CRUDE_USD",
"created_at":"2020-03-25T14:10:00.424Z",
"type":"spot_price"
},
"result":26.71
},
"result":26.71,
"statusCode":200
"id": 1,
"data": {
"base": "BZ"
}
}
```

### Sample Output

```json
{
"jobRunID": "278c97ffadb54a5bbb93cfec5f7b5503",
"data": {
"status": "success",
"data": {
"price": 26.71,
"formatted": "$26.71",
"currency": "USD",
"code": "BRENT_CRUDE_USD",
"created_at": "2020-03-25T14:10:00.424Z",
"type": "spot_price"
},
"result": 26.71
},
"result": 26.71,
"statusCode": 200
}
```
57 changes: 34 additions & 23 deletions packages/sources/xbto/README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,43 @@
# Chainlink External Adapter for XBTO

## Input Params
### Input Params

_None_
| Required? | Name | Description | Options | Defaults to |
| :-------: | :------: | :---------: | :------------: | :---------: |
| | `market` | | `brent`, `wti` | `brent` |

## Output
### Sample Input

```json
{
"jobRunID":"1",
"data":{
"index":40.12795,
"duration":35.71406,
"1st_sym":"BRNF1",
"1st_dte":27.13591,
"1st_mid":40.005,
"1st_wt":0.7140615,
"2nd_sym":"BRNG1",
"2nd_dte":57.13591,
"2nd_mid":40.435,
"2nd_wt":0.2859385,
"3rd_sym":"BRNH1",
"3rd_dte":87.13591,
"3rd_mid":40.865,
"3rd_wt":0,
"result":40.12795
},
"result":40.12795,
"statusCode":200
"id": "1",
"data": {}
}
```

### Sample Output

```json
{
"jobRunID": "1",
"data": {
"index": 40.12795,
"duration": 35.71406,
"1st_sym": "BRNF1",
"1st_dte": 27.13591,
"1st_mid": 40.005,
"1st_wt": 0.7140615,
"2nd_sym": "BRNG1",
"2nd_dte": 57.13591,
"2nd_mid": 40.435,
"2nd_wt": 0.2859385,
"3rd_sym": "BRNH1",
"3rd_dte": 87.13591,
"3rd_mid": 40.865,
"3rd_wt": 0,
"result": 40.12795
},
"result": 40.12795,
"statusCode": 200
}
```

0 comments on commit 2fc67f9

Please sign in to comment.