Author

Topic: Instant fiat conversion for BTCPay Server stores using Kraken exchange (Read 66 times)

legendary
Activity: 2506
Merit: 3645
Buy/Sell crypto at BestChange
Support for lightning network, low fees, open-source system, and finally automatic transfer to fiat, if this works well it will be a strong competitor to Bitpay.

Read more about it ---->https://redbtc.org/flows/integrations/kraken-exchange/

Configuration & Setup

Code:
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/
Jump to: