Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created July 27, 2021 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuyasugano/beaae8fd01591a41ab2893de9add967e to your computer and use it in GitHub Desktop.
Save yuyasugano/beaae8fd01591a41ab2893de9add967e to your computer and use it in GitHub Desktop.
techflare external adapter example
$ curl -X GET -H "Content-Type: application/json" "https://3t9jjasu58.execute-api.ap-northeast-1.amazonaws.com/Stage/chainlink?n=btc&p=h" | jq .
{
"std": {
"9": 987.8966188715287,
"3": 598.4951346781628,
"5": 636.6109131330054,
"30": 2345.7798994815985,
"20": 2062.520469866928
},
"momentum": {
"9": -106.59000000000378,
"3": 1598.7999999999956,
"5": -1694.5900000000038,
"30": 5840.32,
"20": 4196.129999999997
},
"sma": {
"9": 38033.284444444434,
"3": 37645.39666666667,
"5": 37379.58199999999,
"30": 35033.06533333333,
"20": 36151.75100000001
},
"return": {
"9": -0.002786421170213327,
"3": 0.043745235714805375,
"5": -0.04253342693787898,
"30": 0.1807787049401266,
"20": 0.12359498271756197
},
"ema": {
"9": 37454.65445242354,
"3": 37820.432522065814,
"5": 37722.841446441766,
"30": 35767.23656999169,
"20": 36419.05686596748
},
"name": "bitcoin",
"disparity": {
"9": 1.0029841113438769,
"3": 1.0133185828209716,
"5": 1.0205245205791764,
"30": 1.0888793097903433,
"20": 1.055184851212324
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment