Read more about it ---->https://redbtc.org/flows/integrations/kraken-exchange/
Configuration & Setup
Import the Node-RED Flow
Open the "Configuration nodes" panel in Node-RED (via tabs on the right panel or ctrl-g c shortcut) and configure the config-nodes:
btcpay-api-config - create a store on your BTCPay Server and pair the node with it (read more)
kraken-api-config - create Kraken API keys and copy/paste them to the node (read more)
Double-click the initial "/btcpay-ipn" node and configure it to receive POST notifications from your BTCPay Server
Now add the notification URL to the processes that create invoices for you. Calls to BTCPay's Create Invoice API should have the notificationUrl property with the URL you specified in the previous step
Double-click the "🔨 Volume calc" node and set your formula for calculating the amount of Bitcoin to exchange (by default, the flow calcs 20% of the amount)
Double-click the "🔨 Order params" node and change the params of Kraken orders (by default, the flow adds market orders to sell on BTCUSD)
Push Deploy
By following the above, the flow will automatically add an order on Kraken for each paid invoice.
source ---> https://redbtc.org/flows/integrations/kraken-exchange/