
About This PHP Script
Turn any alert on Tradingview into complex orders on Kucoin
This is a 100% custom made bespoke PHP script that will enable you to turn any Tradingview alert into a complex string of orders and commands on Kucoin.
This script supports all Spot trading pairs as well as all USDTM Futures pairs. Webhook alerts get sent from Tradinview to this script and it will turn your message input into Kucoin trades.
This script is now available to buy for a one off payment of $249.99. Once purchased you can set up the API within minutes and start your automated trading journey.
Step 1: Tradingview.com
Using Tradinviews alerts you can send Webhook messages, this is where you send all order information to the API script.
Learn MoreStep 2: This Script
Once the commands are recieved by the API script, it will break each command down and send order details to Kucoin.
Learn MoreStep 3: Kucoin.com Execution
The script sends commands such as limit or market orders to Kucoin and get executed instantly within seconds.
Learn MoreSpecial Offer
Don’t miss this chance to get 50% off!
From now until the 1st of April you can now get this Tradingview to Kucoin script for just $249.99.
Commands
Script commands
- All
- Market
- Limit
- Cancel
- Balance
- Wait
Type | Command | Result |
---|---|---|
- | - | - |
Market order | market(side=buy, amount=1); | Places market buy order for 1 unit (e.g. 1 ETH) |
Market order | market(side=sell, amount=1); | Places market sell order for 1 unit |
Market order | market(side=buy, amount=10%); | Buy 10% of available balance |
Market order | market(side=sell, amount=10%); | Sell 10% of available balance |
Market order | market(side=buy, amount=10%b); | Buy 10% of total balance |
Market order | market(side=sell, amount=10%b); | Sell 10% of total balance |
Market order | market(side=buy, amount=10%p); | Buy 10% of current position size |
Market order | market(side=sell, amount=10%p); | Sell 10% of current position size |
Market order | market(side=buy, amount=10%p); | Buy 10% of current position size |
Market order | market(side=sell, amount=10%p); | Sell 10% of current position size |
- | - | - |
Limit order | limit(side=buy, amount=1); | Buy limit order for 1 unit at last bid price |
Limit order | limit(side=sell, amount=1); | Sell limit order for 1 unit at last bid price |
Limit order | limit(side=buy, amount=1, offset=10%); | Buy 1 unit of coin at -10% current price |
Limit order | limit(side=sell, amount=1, offset=10%); | Sell 1 unit of coin at -10% current price |
Limit order | limit(side=buy, amount=10%); | Buy limit order for 1 unit at last bid price |
Limit order | limit(side=sell, amount=10%); | Sell limit order for 1 unit at last bid price |
Limit order | limit(side=buy, amount=10%, offset=10%); | Buy 10% of available balance at -10 % last price |
Limit order | limit(side=sell, amount=10%, offset=10%); | Sell 10% of available balance at -10 % last price |
Limit order | limit(side=buy, amount=10%b); | Buy 10% of total balance |
Limit order | limit(side=sell, amount=10%b); | Sell 10% of total balance |
Limit order | limit(side=buy, amount=10%b, offset=10%); | Buy 10% of total balance |
Limit order | limit(side=sell, amount=10%b, offset=10%); | Sell 10% of total balance |
Limit order | limit(side=buy, amount=10%p); | Sell 10% of available balance at last price |
Limit order | limit(side=sell, amount=10%p); | Sell limit order for 1 unit at last bid price |
Limit order | limit(side=buy, amount=10%p, offset=10%); | Buy 10% of current position size at -10% last price |
Limit order | limit(side=sell, amount=10%p, offset=10%); | Sell 10% of current position size at -10% last price |
- | - | - |
Cancel order | cancel(); | Cancel all open orders |
Cancel order | cancel(side=all); | Cancel all open orders |
Cancel order | cancel(side=buy); | Cancel all open buy orderss |
Cancel order | cancel(side=sell); | Cancel all open sell orders |
- | - | - |
Wait | wait(10); | Wait 10 seconds before next command |
- | - | - |
Balance | balance(); | Get the balance for the pair and enter in activity log |
Setup Guide
Install and Useage
Setting up and using this PHP script is simple and should only take a few minutes. You will only need to follow these 3 simple steps:
That's it! Now you can setup alerts on Tradingview and send them to your hosted api.php file. E.g. https://webhost.com/api.php?pin=123
Example alerts
kucoin_spot(BTC-USDT) { market(side=buy, amount=50%); }
This command will market buy 50% of your available balance on BTC-USDT pair on Kucoin spot.
kucoin_spot(BTC-USDT) { limit(side=buy, amount=20%, offset=20%); }
This command will place a limit buy order for 20% of available balance on BTC-USDT pair on Kucoin spot 20% below the market rate.
kucoin_futures(XBTUSDTM) { market(side=buy, amount=200%, leverage=10); }
This command will will market buy 200% of your available balance at 10x leverage. E.g. if you have $1000 USDT, this command will market buy $2000 worth of BTC at 10x leverage.
kucoin_spot(BTC-USDT) { market(side=buy, amount=100%); wait(5); limit(side=sell, amount=50%p, offset=10%); balance(); }
This command will market buy 100% of your balance on BTC-USDT pair on Kucoin spot, wait 5 seconds then limit sell 50% of your position at 10% above current market rate.
Order Now
Order this script
- To order this bespoke PHP script please fill in the simple form and we will get back to you with the payment details. You can also email info@TV2KC.com with any questions.