pub struct LedgerMovement {Show 25 fields
pub amount: Option<String>,
pub amount_raw: Option<String>,
pub asset_id: Option<Uuid>,
pub balance_after: Option<String>,
pub balance_after_raw: Option<String>,
pub balance_before: Option<String>,
pub balance_before_raw: Option<String>,
pub balance_id: Option<Uuid>,
pub block_number: Option<String>,
pub created_at: Option<String>,
pub decimals: Option<i32>,
pub description: Option<String>,
pub entry_type: Option<String>,
pub id: Option<Uuid>,
pub locked_after: Option<String>,
pub locked_after_raw: Option<String>,
pub locked_before: Option<String>,
pub locked_before_raw: Option<String>,
pub reference_id: Option<String>,
pub reference_type: Option<String>,
pub symbol: Option<String>,
pub token: Option<String>,
pub transaction_type: Option<String>,
pub tx_hash: Option<String>,
pub user_id: Option<Uuid>,
}Expand description
LedgerMovement
JSON schema
{
"type": "object",
"properties": {
"amount": {
"description": "Human-readable amount in token units",
"examples": [
"100.50"
],
"type": [
"string",
"null"
]
},
"amount_raw": {
"description": "Raw amount in smallest token unit (no decimals)",
"examples": [
"100500000"
],
"type": [
"string",
"null"
]
},
"asset_id": {
"description": "Asset UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"balance_after": {
"description": "Available balance after this movement",
"examples": [
"1000.50"
],
"type": [
"string",
"null"
]
},
"balance_after_raw": {
"description": "Raw available balance after this movement",
"examples": [
"1000500000"
],
"type": [
"string",
"null"
]
},
"balance_before": {
"description": "Available balance before this movement",
"examples": [
"900.00"
],
"type": [
"string",
"null"
]
},
"balance_before_raw": {
"description": "Raw available balance before this movement",
"examples": [
"900000000"
],
"type": [
"string",
"null"
]
},
"balance_id": {
"description": "Balance UUID this movement affects",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"block_number": {
"description": "Block number of the on-chain transaction",
"type": [
"string",
"null"
]
},
"created_at": {
"description": "Movement timestamp (ISO 8601)",
"examples": [
"2023-11-13T10:30:00Z"
],
"type": [
"string",
"null"
]
},
"decimals": {
"description": "Token decimal places",
"examples": [
6
],
"type": [
"integer",
"null"
],
"format": "int32"
},
"description": {
"description": "Human-readable description of the movement",
"examples": [
"USDC deposit"
],
"type": [
"string",
"null"
]
},
"entry_type": {
"description": "Ledger entry type: CREDIT, DEBIT, LOCK, UNLOCK, or FEE",
"examples": [
"CREDIT"
],
"type": [
"string",
"null"
]
},
"id": {
"description": "Movement UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"locked_after": {
"description": "Locked balance after this movement",
"examples": [
"75.00"
],
"type": [
"string",
"null"
]
},
"locked_after_raw": {
"description": "Raw locked balance after this movement",
"examples": [
"75000000"
],
"type": [
"string",
"null"
]
},
"locked_before": {
"description": "Locked balance before this movement",
"examples": [
"50.00"
],
"type": [
"string",
"null"
]
},
"locked_before_raw": {
"description": "Raw locked balance before this movement",
"examples": [
"50000000"
],
"type": [
"string",
"null"
]
},
"reference_id": {
"description": "ID of the related entity (order, trade, etc.)",
"examples": [
"ref_123456"
],
"type": [
"string",
"null"
]
},
"reference_type": {
"description": "Type of the referenced entity",
"examples": [
"deposit"
],
"type": [
"string",
"null"
]
},
"symbol": {
"description": "Token symbol",
"examples": [
"USDC"
],
"type": [
"string",
"null"
]
},
"token": {
"description": "Token contract address",
"type": [
"string",
"null"
]
},
"transaction_type": {
"description": "Transaction type: DEPOSIT, WITHDRAWAL, TRADE, or FEE",
"examples": [
"DEPOSIT"
],
"type": [
"string",
"null"
]
},
"tx_hash": {
"description": "On-chain transaction hash (if applicable)",
"type": [
"string",
"null"
]
},
"user_id": {
"description": "User UUID who owns this movement",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}Fields§
§amount: Option<String>Human-readable amount in token units
amount_raw: Option<String>Raw amount in smallest token unit (no decimals)
asset_id: Option<Uuid>Asset UUID
balance_after: Option<String>Available balance after this movement
balance_after_raw: Option<String>Raw available balance after this movement
balance_before: Option<String>Available balance before this movement
balance_before_raw: Option<String>Raw available balance before this movement
balance_id: Option<Uuid>Balance UUID this movement affects
block_number: Option<String>Block number of the on-chain transaction
created_at: Option<String>Movement timestamp (ISO 8601)
decimals: Option<i32>Token decimal places
description: Option<String>Human-readable description of the movement
entry_type: Option<String>Ledger entry type: CREDIT, DEBIT, LOCK, UNLOCK, or FEE
id: Option<Uuid>Movement UUID
locked_after: Option<String>Locked balance after this movement
locked_after_raw: Option<String>Raw locked balance after this movement
locked_before: Option<String>Locked balance before this movement
locked_before_raw: Option<String>Raw locked balance before this movement
reference_id: Option<String>ID of the related entity (order, trade, etc.)
reference_type: Option<String>Type of the referenced entity
symbol: Option<String>Token symbol
token: Option<String>Token contract address
transaction_type: Option<String>Transaction type: DEPOSIT, WITHDRAWAL, TRADE, or FEE
tx_hash: Option<String>On-chain transaction hash (if applicable)
user_id: Option<Uuid>User UUID who owns this movement
Trait Implementations§
Source§impl Clone for LedgerMovement
impl Clone for LedgerMovement
Source§fn clone(&self) -> LedgerMovement
fn clone(&self) -> LedgerMovement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more