Module utils

Module utils 

Source
Expand description

Utility functions and helpers. Utility functions and helpers for the Alpaca API.

Structs§

PaginatedResponse
Response wrapper with pagination information
Pagination
Pagination parameters for API requests
RateLimiter
Rate limiter for API requests
RetryConfig
Retry configuration for API requests
UrlBuilder
URL builder helper

Functions§

format_decimal
Format decimal value to string with specified precision
generate_client_order_id
Generate a random client order ID
init_logger
Logger configuration
parse_decimal
Parse a string to a decimal value with validation
parse_rfc3339
Parse RFC3339 timestamp
timestamp_to_rfc3339
Convert timestamp to RFC3339 format
validate_price
Validate price value
validate_quantity
Validate quantity value
validate_symbol
Validate symbol format