Initial commit
This commit is contained in:
34
docs/zagros/order-trade-steps/order-api.md
Normal file
34
docs/zagros/order-trade-steps/order-api.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# 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
|
||||
|
||||
|
||||
```mermaid
|
||||
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
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user