df-papertrade-core 0.0.11-beta

Papertrade SDK for Rust on df-hyperliquid-core: intents, relayer, live account, session keys, signed writes, deposits and exact venue math. Wasm-ready.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Trading on the venue.
//!
//! - [`intent`]: every intent, its EIP-712 data, signature, intent id and relayer body.
//! - [`math`]: the venue's integer math: bust prices, PnL after impact and fees, open limits and
//!   the PAPER mint.
//! - [`writes`]: the [`Client`](crate::Client) calls that sign intents and post them.

pub mod intent;
pub mod math;
pub mod writes;

pub use intent::{
    BadSignature, CancelIntent, Claim, Close, Intent, Key, OpenPosition, Refusal, RegisterSessionKey, Signed, Staking,
    WithdrawToCore, deadline, intent_id,
};
pub use math::{OpenLimits, OpenRefusal, Valuation, bust_price, value};
pub use writes::Open;