bpx_api_types/
lib.rs

1//! Types module for the Backpack Exchange API.
2//!
3//! This module contains various types used across the Backpack Exchange API,
4//! including enums and structs for capital, markets, orders, trades, and user data.
5
6use serde::{Deserialize, Serialize};
7use strum::{Display, EnumIter, EnumString};
8
9pub mod account;
10pub mod borrow_lend;
11pub mod capital;
12pub mod futures;
13pub mod margin;
14pub mod markets;
15pub mod order;
16pub mod rfq;
17pub mod trade;
18pub mod user;
19
20#[derive(Debug, Display, Clone, Copy, Serialize, Deserialize, Default, EnumString, PartialEq, Eq, Hash, EnumIter)]
21#[strum(serialize_all = "PascalCase")]
22#[serde(rename_all = "PascalCase")]
23pub enum Blockchain {
24    #[default]
25    Solana,
26    Ethereum,
27    Polygon,
28    Bitcoin,
29    Internal,
30    EqualsMoney,
31    Cardano,
32    Hyperliquid,
33    Story,
34    Bsc,
35    Dogecoin,
36    Sui,
37    XRP,
38    Litecoin,
39    Berachain,
40}