TWAZI

Order Formatting

Formats trading decisions into executable orders for specific platforms.

Inputs

  • Risk-Checked Decision required: Trading decision after risk management
  • Exchange Info required: Exchange or smart contract details
  • Credentials required: API credentials for OPENAI
  • Balances required: Current asset balances
  • Prompt: Optional custom prompt for order formatting

Example

{
  "Risk-Checked Decision": {
    "action": "BUY",
    "asset": "ETH-USDT",
    "amount": "2.5",
    "type": "LIMIT",
    "price": "3150"
  },
  "Exchange Info": {
    "name": "binance",
    "orderTypes": ["MARKET", "LIMIT"],
    "decimals": 8
  },
  "Credentials": "YOUR_OPENAI_API_KEY",
  "Balances": {
    "USDT": "10000",
    "ETH": "1.2"
  },
  "Prompt": "Format order with maximum precision and safety checks"
}

Outputs

  • Formatted Order: Exchange-specific order format ready for execution
Order formatting workflow example

On this page

Edit on GitHub