Connecting coinbase to trade automatically using a strategy or indicator is now easier than ever. Using The tool TradingView To Coinbase, one can connect their alerts to perform actions such as buy, sell or cancel a trade. You can also retrieve your account balance for any coin.
The process is very simple.
-
Create a webhook on Coinbase Automation
Follow the steps and carefully submit your API Keys. -
Pick a strategy or indicator to use for your auto trading. Any private or public script will work. You can even use the generated alerts for price crossing.
-
Create your alert on tradingview and add the webhook in notifications. Your message should follow this syntax: Action SYMBOL Param=value. Example:
buy XRP/USDT quantity=10%
And that is it. You have successfully automated your coinbase account
Here are some parameters supported.
- Action either buy, sell, cancel or balance
- Symbol written with a
/
as it appears on the link - Quantity - Q passed as a percentage or token size. To be more specific, you can use the param OQ for opening quantity and CQ for closing quantity.
- Price - P passed to convert to a limit order.
Some values can be generated from tradingview alert placeholders. See some examples here.
Examples
Opening a trade
buy XRP/USDT q=25%
Buys XRP using 25% of your available USDT balance in your spot account.
{{strategy.market_position}} XRP/USDC q=20% p=2.3600
Places a limit order to buy or sell XRP using 20% of your available USDC balance, at a target price of 2.3600 USDT per XRP, depending on the current strategy direction.
Cancelling a Limit Order
Cancel BTC/USDT
Cancels all open limit orders for the BTC/USDT trading pair in your spot account.
Exit ETH/USDC
Cancels all pending limit orders for ETH/USDC in your spot account.
Checking the balance
Balance USDT
Retrieves the current USDT balance from your spot account.
Funds
Retrieves a list of all asset balances in your spot account.
Enjoy and Keep automating with TradingView.To/Anywhere