1use serde::Serialize;
2
3#[derive(Copy, Clone, Debug, PartialEq, Serialize)]
4pub enum Order{
5 BUY,
6 SHORTSELL,
7 NULL,
8}
9impl Order{
10 pub fn to_string(&self)->&str{
11 match self{
12 Order::BUY=>"buy",
13 Order::NULL=>"null",
14 Order::SHORTSELL=>"short",
15 }
16 }
17}