From 6c409ac9fd347481bc42b48ae5939f2c5a8fe0f9 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Fri, 12 Feb 2021 14:56:50 +0000 Subject: [PATCH] added trading fees model --- rustybot/src/models.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rustybot/src/models.rs b/rustybot/src/models.rs index 1e137b5..32c8743 100644 --- a/rustybot/src/models.rs +++ b/rustybot/src/models.rs @@ -563,3 +563,15 @@ pub struct Trade { pub fee: OrderFee, pub fee_currency: Symbol, } + +#[derive(Debug)] +pub enum TradingFees { + Maker { + platform: TradingPlatform, + percentage: f64, + }, + Taker { + platform: TradingPlatform, + percentage: f64, + }, +}