Actions9
- Account Actions
- Order Actions
- Product Actions
Order → Create Limit Order
AI-generatedOverview
This node interacts with the Coinbase Advanced Trade API to create a limit buy or sell order for a specified cryptocurrency product. It allows users to specify the product (e.g., BTC-USD), the side of the trade (buy or sell), the size of the order, and the limit price. Additional options such as client order ID, self-trade prevention ID, and post-only flag can also be set. This node is useful for automated trading strategies where precise control over order price and execution conditions is required.
Use Case Examples
- Creating a limit buy order for BTC-USD at a specific price to enter the market only if the price is favorable.
- Creating a limit sell order for ETH-USD with a post-only flag to ensure the order only adds liquidity and does not execute immediately.
Properties
| Name | Meaning |
|---|---|
| Product ID | The product to trade, such as BTC-USD or ETH-USD. |
| Side | Whether to buy or sell the product. |
| Size | The size of the order, specifying how much of the product to buy or sell. |
| Limit Price | The limit price for the order, specifying the maximum price to buy or minimum price to sell. |
| Additional Options | Optional parameters to customize the order, including client order ID, self-trade prevention ID, and post-only flag. |
Output
JSON
id- The unique identifier of the created order.product_id- The product ID for which the order was created.side- The side of the order, either buy or sell.order_configurationlimit_limit_gtc
*base_size- The size of the order in base currency.
*limit_price- The limit price set for the order.
*post_only- Indicates if the order is post-only.
client_order_id- The client-specified unique ID for the order.
Dependencies
- Coinbase Advanced Trade API
- An API key credential for authentication
Troubleshooting
- Ensure that the API key credentials are correctly configured and have the necessary permissions to create orders.
- Verify that the product ID is valid and supported by Coinbase Advanced Trade API.
- Check that the limit price and size are correctly formatted as strings representing numbers.
- If the node throws an error about missing credentials, confirm that the API key and secret are properly set up in the node's credentials.
- Errors related to JWT generation may indicate an invalid private key format; ensure the private key includes the full header and footer lines.
Links
- Coinbase Advanced Trade API Documentation - Official documentation for Coinbase Advanced Trade API, including order creation details.