From 795680df02a7317eff332fc639d1b6b41be2ecb1 Mon Sep 17 00:00:00 2001 From: hiohiohio Date: Thu, 30 May 2024 18:33:48 +0900 Subject: [PATCH] feat: Add transmitter info into BatchJournalRequestEntry (#459) * feat: add transmitter info into BatchJournalRequestEntry * doc: update type of amount in BatchJournalRequestEntry * feat: add description field into BatchJournalRequestEntry --- alpaca/broker/requests.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/alpaca/broker/requests.py b/alpaca/broker/requests.py index dec9c3e2..33fe1526 100644 --- a/alpaca/broker/requests.py +++ b/alpaca/broker/requests.py @@ -891,11 +891,23 @@ class BatchJournalRequestEntry(NonEmptyRequest): Attributes: to_account (UUID): Account to fund in batch journal request. - amount (float): The cash amount in USD to fund by. + amount (Union[str, float]): The cash amount in USD to fund by. + description (Optional[str]): Journal description. + transmitter_name (Optional[str]): For cash journals, travel rule related name info. + transmitter_account_number (Optional[str]): For cash journals, travel rule account number info. + transmitter_address (Optional[str]): For cash journals, travel rule related address info. + transmitter_financial_institution (Optional[str]): For cash journals, travel rule related institution info. + transmitter_timestamp (Optional[str]): For cash journals, travel rule related timestamp info. """ to_account: UUID - amount: float + amount: Union[str, float] + description: Optional[str] = None + transmitter_name: Optional[str] = None + transmitter_account_number: Optional[str] = None + transmitter_address: Optional[str] = None + transmitter_financial_institution: Optional[str] = None + transmitter_timestamp: Optional[str] = None class ReverseBatchJournalRequestEntry(NonEmptyRequest):