This section give's control over the system's ledger.
Ledger routes should get it's data from an external ledger service.
The ledger is the system's source of truth,every action(trade,transfer,deposit,withdrawal,balance update) must be registered in the ledger - for verification, and data storage.
Admin logged in - can see the ledger status and information for all the system's users.
User logged in - can see it's own ledger data.
returns all the rows from the ledger talbe
Success
Unauthorized
Forbidden
{- "api_message": "<string>",
- "api_data": [
- {
- "id": "<string>",
- "type": "<string>",
- "amount": 1,
- "currency": "<string>",
- "ticker": "<string>",
- "order_id": "<string>",
- "order_coid": "<string>",
- "order_status": "<string>",
- "settlement_sequence": "<string>",
- "txid": "<string>",
- "wallet_id": "<string>",
- "wallet_address": "<string>",
- "recepient_wallet_address": "<string>",
- "wallet_type": "<string>",
- "lp_id": "<string>",
- "lp_name": "<string>",
- "created_by_id": "<string>",
- "comment": "<string>",
- "timestamp": "<datetime string>",
- "enc_order_id": "<string>"
}
]
}
Return ledger info about order using order_id
Success
Unauthorized
Forbidden
{- "api_message": "<string>",
- "api_data": [
- {
- "id": "<string>",
- "type": "<string>",
- "amount": 1,
- "currency": "<string>",
- "ticker": "<string>",
- "order_id": "<string>",
- "order_coid": "<string>",
- "order_status": "<string>",
- "settlement_sequence": "<string>",
- "txid": "<string>",
- "wallet_id": "<string>",
- "wallet_address": "<string>",
- "recepient_wallet_address": "<string>",
- "wallet_type": "<string>",
- "lp_id": "<string>",
- "lp_name": "<string>",
- "created_by_id": "<string>",
- "comment": "<string>",
- "timestamp": "<datetime string>",
- "enc_order_id": "<string>"
}
]
}
Getting list of ledger rows using user_id
Success
Unauthorized
Forbidden
{- "api_message": "<string>",
- "api_data": [
- {
- "id": "<string>",
- "type": "<string>",
- "amount": 1,
- "currency": "<string>",
- "ticker": "<string>",
- "order_id": "<string>",
- "order_coid": "<string>",
- "order_status": "<string>",
- "settlement_sequence": "<string>",
- "txid": "<string>",
- "wallet_id": "<string>",
- "wallet_address": "<string>",
- "recepient_wallet_address": "<string>",
- "wallet_type": "<string>",
- "lp_id": "<string>",
- "lp_name": "<string>",
- "created_by_id": "<string>",
- "comment": "<string>",
- "timestamp": "<datetime string>",
- "enc_order_id": "<string>"
}
]
}
Getting pending deposits for specific user
Success
Unauthorized
Forbidden
{- "api_message": "<string>",
- "api_data": {
- "[currency name]": [
- {
- "id": "<string>",
- "type": "<string>",
- "amount": 1,
- "currency": "<string>",
- "ticker": "<string>",
- "order_id": "<string>",
- "order_coid": "<string>",
- "order_status": "<string>",
- "settlement_sequence": "<string>",
- "txid": "<string>",
- "wallet_id": "<string>",
- "wallet_address": "<string>",
- "recepient_wallet_address": "<string>",
- "wallet_type": "<string>",
- "lp_id": "<string>",
- "lp_name": "<string>",
- "created_by_id": "<string>",
- "comment": "<string>",
- "timestamp": "<datetime string>",
- "enc_order_id": "<string>"
}
]
}
}