Is this working?

Ok let’s see what we can do with these new blocks and styles.

<?php

$request = new HttpRequest();
$request->setUrl('https://api.taapi.io/bulk');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'Content-Type' => 'application/json'
]);

$request->setBody('{
	"secret": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Im1tQHRhYXBpLmlvIiwiaWF0IjoxNjA4NTU2MzU5LCJleHAiOjc5MTU3NTYzNTl9.YxRWNMmTMB-yWrN7j6Dh9AMY26tZCmzjj1-qPoKSWn4",
	"construct": {
		"exchange": "binance",
		"symbol": "BTC/USDT",
		"interval": "1h",
		"indicators": [
			{
				"indicator": "ema",
				"period": 20
			},
			{
				"indicator": "rsi",
				"period": 14
			}
		]
	}
}');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

Calculates the Fibonacci Retracement based on the set of candles defined by the period. It will use the highest-high and lowest-low with the data-set for the calculation. Period can have a maximum of 300 candles.

Even the bitterest fruit has sugar in it.

– Terry a O’Neal

The trees that are slow to grow bear the best fruit.

– Molière

Ready to get started?

Request your free API key today and get started

© 2022 TAAPI.IO, s.r.o. All rights reserved.