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 fill;
13pub mod futures;
14pub mod history;
15pub mod margin;
16pub mod markets;
17pub mod order;
18pub mod rfq;
19pub mod trade;
20pub mod user;
21
22#[derive(Debug, Display, Clone, Copy, Serialize, Deserialize, Default, EnumString, PartialEq, Eq, Hash, EnumIter)]
23#[strum(serialize_all = "PascalCase")]
24#[serde(rename_all = "PascalCase")]
25pub enum Blockchain {
26    #[default]
27    Solana,
28    Ethereum,
29    Polygon,
30    Bitcoin,
31    Internal,
32    EqualsMoney,
33    Cardano,
34    Hyperliquid,
35    Story,
36    Bsc,
37    Dogecoin,
38    Sui,
39    XRP,
40    Litecoin,
41    Berachain,
42}