I write code for send webhook in Currensy-Rest-api:
https://currency.com/ru/general-rest-api-information
for this i need to form signature HMAC sha256, in example of currensy i have
[echo "symbol=LTC%2FBTC&side=BUY" | openssl dgst -sha256 -hmac "SECRETKEY"]
can i use:
$signature = hash_hmac('sha256', $raw, $signkey);
like analog
realy i try but API give me answer: {"code":-1025,"msg":"Invalid API-key, IP, or permissions for action"}
):