CrowdHydra icon

CrowdHydra

Interact with DeltaDefi Protocol via CrowdHydra for accounts and orders management

Overview

This node interacts with the DeltaDefi Protocol via CrowdHydra to manage accounts and orders, specifically allowing users to create new trading orders on a specified market symbol. It supports creating limit or market orders with specified side (buy or sell), quantity, and price (for limit orders). This node is useful for automating trading activities such as placing buy or sell orders programmatically on supported trading pairs.

Use Case Examples

  1. Automatically place a buy limit order for ADAUSDM with a specified quantity and price.
  2. Create a market sell order for a trading pair to quickly execute a trade at the current market price.

Properties

Name Meaning
Symbol Trading pair symbol for the order, e.g., ADAUSDM.
Side Order side indicating whether to buy or sell.
Type Order type, either limit or market.
Quantity Quantity of the asset to order, must be a positive number.
Price Limit price for the order, required only for limit orders and must be a positive number.

Output

JSON

  • json
    • symbol - The trading pair symbol of the created order.
    • side - The side of the order, buy or sell.
    • type - The type of the order, limit or market.
    • quantity - The quantity specified in the order.
    • price - The limit price if the order is a limit order.
    • orderId - The unique identifier of the created order returned by the API.

Dependencies

  • Requires an API key credential and encryption password for authentication with the DeltaDefi Protocol via CrowdHydra.

Troubleshooting

  • Common errors include failure to load the operation key due to incorrect trading password, operation key created on a different network, or missing operation key for the account on the specified network. The error message will suggest verifying the operation key existence on the DeltaDefi dashboard.
  • If the node throws an AES-GCM decryption failure, verify the encryption password and network settings are correct.
  • Ensure that the 'Price' property is provided and greater than zero when creating limit orders, as it is required.

Links

Discussion