Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New funding-rate endpoint for mobula EA #3699

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

New funding-rate endpoint for mobula EA #3699

wants to merge 1 commit into from

Conversation

martin-cll
Copy link
Collaborator

New Websocket API for Mobula to get funding rates of assets on different exchanges.

To subscribe to an asset, send a WS message once per connection like:

{"type":"funding","authorization":"API_KEY","payload":{"symbol":"BTC"}}

Thereafter, we will receive messages at a rate of 1 msg per second like:

{"binanceFundingRate":{"symbol":"BTCUSDC","fundingTime":1740441600000,"fundingRate":0.009854,"marketPrice":"91505.25655876","epochDurationMs":28800000},"deribitFundingRate":{"symbol":"BTC","fundingTime":1740466800000,"fundingRate":0.00573193029855309,"marketPrice":91250.36,"epochDurationMs":28800000},"queryDetails":{"base":"BTC","quote":null}}

which contains funding rates for both the binance and deribit exchanges. We use the queryDetails to get the original symbol that we subscribed to in order to generate the EA results.

Mobula does not support unsubscribes.

Copy link

changeset-bot bot commented Feb 25, 2025

🦋 Changeset detected

Latest commit: de512be

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@chainlink/mobula-state-adapter Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cl-ea-js-service
Copy link

⚠️ Soak test failed for mobula-state ⚠️
default   [  93% ] 1 VUs  09m18.8s/10m0s

running (09m19.8s), 1/1 VUs, 122671 complete and 0 interrupted iterations
default   [  93% ] 1 VUs  09m19.8s/10m0s

running (09m20.8s), 1/1 VUs, 123046 complete and 0 interrupted iterations
default   [  93% ] 1 VUs  09m20.8s/10m0s

running (09m21.8s), 1/1 VUs, 123484 complete and 0 interrupted iterations
default   [  94% ] 1 VUs  09m21.8s/10m0s

running (09m22.8s), 1/1 VUs, 123884 complete and 0 interrupted iterations
default   [  94% ] 1 VUs  09m22.8s/10m0s

running (09m23.8s), 1/1 VUs, 124330 complete and 0 interrupted iterations
default   [  94% ] 1 VUs  09m23.8s/10m0s

running (09m24.8s), 1/1 VUs, 124749 complete and 0 interrupted iterations
default   [  94% ] 1 VUs  09m24.8s/10m0s

running (09m25.8s), 1/1 VUs, 125163 complete and 0 interrupted iterations
default   [  94% ] 1 VUs  09m25.8s/10m0s

running (09m26.8s), 1/1 VUs, 125541 complete and 0 interrupted iterations
default   [  94% ] 1 VUs  09m26.8s/10m0s

running (09m27.8s), 1/1 VUs, 125916 complete and 0 interrupted iterations
default   [  95% ] 1 VUs  09m27.8s/10m0s

running (09m28.8s), 1/1 VUs, 126255 complete and 0 interrupted iterations
default   [  95% ] 1 VUs  09m28.8s/10m0s

running (09m29.8s), 1/1 VUs, 126629 complete and 0 interrupted iterations
default   [  95% ] 1 VUs  09m29.8s/10m0s

running (09m30.8s), 1/1 VUs, 126963 complete and 0 interrupted iterations
default   [  95% ] 1 VUs  09m30.8s/10m0s

running (09m31.8s), 1/1 VUs, 127347 complete and 0 interrupted iterations
default   [  95% ] 1 VUs  09m31.8s/10m0s

running (09m32.8s), 1/1 VUs, 127696 complete and 0 interrupted iterations
default   [  95% ] 1 VUs  09m32.8s/10m0s

running (09m33.8s), 1/1 VUs, 128091 complete and 0 interrupted iterations
default   [  96% ] 1 VUs  09m33.8s/10m0s

running (09m34.8s), 1/1 VUs, 128472 complete and 0 interrupted iterations
default   [  96% ] 1 VUs  09m34.8s/10m0s

running (09m35.8s), 1/1 VUs, 128889 complete and 0 interrupted iterations
default   [  96% ] 1 VUs  09m35.8s/10m0s

running (09m36.8s), 1/1 VUs, 129265 complete and 0 interrupted iterations
default   [  96% ] 1 VUs  09m36.8s/10m0s

running (09m37.8s), 1/1 VUs, 129656 complete and 0 interrupted iterations
default   [  96% ] 1 VUs  09m37.8s/10m0s

running (09m38.8s), 1/1 VUs, 129987 complete and 0 interrupted iterations
default   [  96% ] 1 VUs  09m38.8s/10m0s

running (09m39.8s), 1/1 VUs, 130354 complete and 0 interrupted iterations
default   [  97% ] 1 VUs  09m39.8s/10m0s

running (09m40.8s), 1/1 VUs, 130733 complete and 0 interrupted iterations
default   [  97% ] 1 VUs  09m40.8s/10m0s

running (09m41.8s), 1/1 VUs, 131109 complete and 0 interrupted iterations
default   [  97% ] 1 VUs  09m41.8s/10m0s

running (09m42.8s), 1/1 VUs, 131467 complete and 0 interrupted iterations
default   [  97% ] 1 VUs  09m42.8s/10m0s

running (09m43.8s), 1/1 VUs, 131827 complete and 0 interrupted iterations
default   [  97% ] 1 VUs  09m43.8s/10m0s

running (09m44.8s), 1/1 VUs, 132170 complete and 0 interrupted iterations
default   [  97% ] 1 VUs  09m44.8s/10m0s

running (09m45.8s), 1/1 VUs, 132553 complete and 0 interrupted iterations
default   [  98% ] 1 VUs  09m45.8s/10m0s

running (09m46.8s), 1/1 VUs, 132937 complete and 0 interrupted iterations
default   [  98% ] 1 VUs  09m46.8s/10m0s

running (09m47.8s), 1/1 VUs, 133329 complete and 0 interrupted iterations
default   [  98% ] 1 VUs  09m47.8s/10m0s

running (09m48.8s), 1/1 VUs, 133697 complete and 0 interrupted iterations
default   [  98% ] 1 VUs  09m48.8s/10m0s

running (09m49.8s), 1/1 VUs, 134095 complete and 0 interrupted iterations
default   [  98% ] 1 VUs  09m49.8s/10m0s

running (09m50.8s), 1/1 VUs, 134452 complete and 0 interrupted iterations
default   [  98% ] 1 VUs  09m50.8s/10m0s

running (09m51.8s), 1/1 VUs, 134811 complete and 0 interrupted iterations
default   [  99% ] 1 VUs  09m51.8s/10m0s

running (09m52.8s), 1/1 VUs, 135160 complete and 0 interrupted iterations
default   [  99% ] 1 VUs  09m52.8s/10m0s

running (09m53.8s), 1/1 VUs, 135509 complete and 0 interrupted iterations
default   [  99% ] 1 VUs  09m53.8s/10m0s

running (09m54.8s), 1/1 VUs, 135876 complete and 0 interrupted iterations
default   [  99% ] 1 VUs  09m54.8s/10m0s

running (09m55.8s), 1/1 VUs, 136245 complete and 0 interrupted iterations
default   [  99% ] 1 VUs  09m55.8s/10m0s

running (09m56.8s), 1/1 VUs, 136580 complete and 0 interrupted iterations
default   [  99% ] 1 VUs  09m56.8s/10m0s

running (09m57.8s), 1/1 VUs, 136938 complete and 0 interrupted iterations
default   [ 100% ] 1 VUs  09m57.8s/10m0s

running (09m58.8s), 1/1 VUs, 137263 complete and 0 interrupted iterations
default   [ 100% ] 1 VUs  09m58.8s/10m0s

running (09m59.8s), 1/1 VUs, 137658 complete and 0 interrupted iterations
default   [ 100% ] 1 VUs  09m59.8s/10m0s

     ✗ Group-mobula-state-test-payload-0 returned 200
      ↳  0% — ✓ 34 / ✗ 137671

     checks.........................: 0.02%  ✓ 34         ✗ 137671
     data_received..................: 43 MB  71 kB/s
     data_sent......................: 16 MB  27 kB/s
     errors.........................: 2.85%  ✓ 1          ✗ 34    
     http_req_blocked...............: avg=2.13µs  min=190ns    med=320ns   max=103.53ms p(90)=540ns    p(95)=600ns   
     http_req_connecting............: avg=136ns   min=0s       med=0s      max=9.26ms   p(90)=0s       p(95)=0s      
   ✓ http_req_duration..............: avg=2.91ms  min=112.36µs med=1.97ms  max=2.23s    p(90)=4.41ms   p(95)=4.89ms  
       { expected_response:true }...: avg=42.43ms min=3.84ms   med=6.17ms  max=1.21s    p(90)=7.79ms   p(95)=16.82ms 
   ✗ http_req_failed................: 99.97% ✓ 137671     ✗ 34    
     http_req_receiving.............: avg=95.71µs min=12.59µs  med=53.15µs max=79.56ms  p(90)=90.72µs  p(95)=109.12µs
     http_req_sending...............: avg=78µs    min=0s       med=65.55µs max=80.14ms  p(90)=103.27µs p(95)=124.59µs
     http_req_tls_handshaking.......: avg=868ns   min=0s       med=0s      max=35.34ms  p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=2.73ms  min=0s       med=1.84ms  max=2.23s    p(90)=4.25ms   p(95)=4.7ms   
     http_reqs......................: 137705 229.507882/s
     iteration_duration.............: avg=4.32ms  min=672.52µs med=2.12ms  max=5s       p(90)=4.61ms   p(95)=5.11ms  
     iterations.....................: 137705 229.507882/s
     vus............................: 1      min=1        max=1   
     vus_max........................: 1      min=1        max=1   


running (10m00.0s), 0/1 VUs, 137705 complete and 0 interrupted iterations
default ✓ [ 100% ] 1 VUs  10m0s
✔️ Assertions loaded: 1, applied: 1
Applied:
Assertion applied: {"request":{},"expectedResponse":{"result":{"greaterThan":0}}}

Failed:
(no failed assertions)
Output sample
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

request: {"data":{"from":"ETH","to":"USD"}} response: <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

SyntaxError: invalid character '<' looking for beginning of value
	at parse (native)
	at validateOutput (webpack:///./output-test.ts:99:26(27))
	at test (webpack:///./test.ts:149:19(64))

Assertion loaded: {"request":{},"expectedResponse":{"result":{"greaterThan":0}}}
thresholds on metrics 'http_req_failed' have been crossed


export const endpoint = new AdapterEndpoint({
name: 'funding-rate',
aliases: [],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove


const logger = makeLogger('MobulaStateFundingRate')

export const EXCHANGES = ['binance', 'deribit'] as const
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be an env var?

"fundingTime": 1740441600000,
"result": 0.009854,
},
"result": 0.009854,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does our system handles decimals properly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants