Trading
Place Trade
Changed onPlace a buy or sell order using a specific account and connector.
Args: trade_request: Trading request with account, connector, trading pair, type, amount, etc. accounts_service: Injected accounts service
Returns: TradeResponse with order ID and trading details
Raises: HTTPException: 400 for invalid parameters, 404 for account/connector not found, 500 for trade execution errors
post/trading/orders
Request
- Base URLhttp://localhost:8000
- URLhttp://localhost:8000/trading/orders
- AuthHTTP basic
Request body
Response
Successful Response
Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
endpoint added
- info