Extract value from web hook

Hi.
I am a beginner user and I have encountered the following problem.

From web hook I get the following value:

{“type”:“new_coin”,“listing_type”:“listing”,“message”:“Crowdholding (YUP) has been listed on CoinEx!”,“currency”:“YUP”,“currency_name”:“Crowdholding”,“exchange”:“CoinEx”,“alert_condition_id”:1832473,“currency_address”:“0xd9a12cde03a86e800496469858de8581d3a5353d”,“blockchain”:“Ethereum”}

I would like to extract the value of “currency” from the given text (in this case “YUP”) and insert it into the “symbol” field while maintaining the case. Create a JSON structure with the following format:

{
“api_key”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“api_secret”: “xxxxxxxxxxxxxxxxxxxxxxxxxx”,
“action”: “open”,
“exchange”: “BYBIT”,
“symbol”: “BYBIT_USDT_---->insert_extracted_currency_value_here<----”
}

created and changed by a new value text in json format I would like to send to this API address:
https://api.altrady.com/v2/signal_bot_positions

Hi @Rafal_Glina,

Here you would use an HTTP module (pick depending on what authentication you need)

Then use this format to create your POST request, where we define the request body as this JSON format above, and then in your ‘insert here’ click the output field for currency from your webhook

4 Likes

Thank you sincerely for such a quick response and sensible solution :blush:

2 Likes