Skip to main content

Module http

Module http 

Source
Expand description

Read-only client for the public Acta HTTP API.

Re-exports§

pub use types::CountLimit;
pub use types::PremiumFlow;
pub use types::ProjectionCursor;
pub use types::TokenProgramKind;
pub use types::Vault;
pub use types::VaultCapacity;
pub use types::VaultExposure;
pub use types::VaultExposurePosition;
pub use types::VaultExposureTotal;
pub use types::VaultFees;
pub use types::VaultLeg;
pub use types::VaultMetadata;
pub use types::VaultPerformance;
pub use types::VaultPolicy;
pub use types::VaultPosition;
pub use types::VaultPositionProduct;
pub use types::VaultPositionRole;
pub use types::VaultPositionStatus;
pub use types::VaultPositionType;
pub use types::VaultPremium;
pub use types::VaultReturns;
pub use types::VaultStaging;
pub use types::Venue;
pub use types::WindowReturn;

Structs§

HttpClient
MarketFilter
PremiumFlow
ProjectionCursor
Vault
Public /api/v1/vaults row. Integers wider than JSON-safe stay decimal strings.
VaultExposure
Public /api/v1/vaults/{pda}/exposure: outstanding positions at the indicative spot.
VaultExposurePosition
intrinsic is in quote atoms: positive for holder legs, negative for writer legs.
VaultExposureTotal
None when any position of the quote mint lacks the value.
VaultFees
Generation totals in main atoms.
VaultMetadata
VaultPerformance
Metrics of capital_generation as of computed_at; all None unless covered.
VaultPolicy
VaultPosition
Public /api/v1/vaults/{pda}/positions row.
VaultPremium
Net premium per quote mint, in quote atoms, for the current cycle and generation.
VaultReturns
VaultStaging
Leg balance moved into a vault ATA of another mint, pending return to a leg.
Venue
Public /api/v1/venue: limits the server validates against.
WindowReturn
Net-of-fee booked share price return between two checkpoint times.

Enums§

CountLimit
A configured count bound.
HttpError
TokenProgramKind
VaultCapacity
A zero on-chain cap means the vault accepts deposits without a limit.
VaultPositionProduct
Physical CC/CSP, or a cash spread with its upper strike and the quote atoms it reserves.
VaultPositionRole
VaultPositionStatus
VaultPositionType