Files
Dena/docs/zagros/order-trade-steps/order-api.md
2026-08-13 19:50:53 +03:30

728 B

Order Creation: Api

Outcome:

Users create sell or buy order.

Implementation description:

Endpoints:

  • POST {$domain}/api/v2/peatio/marker/orders/fiat

Params

  • market
  • side
  • volume
  • ord_type

File destination:

{$Dena_Path}/app/api/v2/market/orders.rb

sequenceDiagram

    title Order Creation
    User->>Ranj: market, side, volume, ord_type
    Ranj->>Dena: POST: after client side checking
    Dena->>Ranj: 4xx if lose any required parameters
    Dena->>Ranj: 4xx if users level lower than the 
    Dena->>Dena: compute lock balance
    Dena->>Dena: send order to the Order Processor queue
    Dena->>Ranj: 2xx order record created 

    Ranj->>User: show The Order response