1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use injective_math::FPDecimal;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use crate::SubaccountId;
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
pub struct OrderData {
pub market_id: String,
pub subaccount_id: SubaccountId,
pub order_hash: String,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
pub struct OrderInfo {
pub subaccount_id: SubaccountId,
pub fee_recipient: String,
pub price: FPDecimal,
pub quantity: FPDecimal,
}