Lean
$LEAN_TAG$
|
Represents a fee model specific to Coinbase. This class extends the base fee model. More...
Public Member Functions | |
CoinbaseFeeModel (decimal makerFee=MakerAdvanced1, decimal takerFee=TakerAdvanced1) | |
Create Coinbase Fee model setting fee values More... | |
override OrderFee | GetOrderFee (OrderFeeParameters parameters) |
Get the fee for this order in quote currency More... | |
Static Public Attributes | |
const decimal | MakerAdvanced1 = 0.006m |
Level Advanced 1 maker fee Tab "Fee tiers" on More... | |
const decimal | TakerAdvanced1 = 0.008m |
Level Advanced 1 taker fee Tab "Fee tiers" on More... | |
const decimal | MakerStablePairs = 0m |
Stable Pairs maker fee Tab "Stable pairs" on More... | |
const decimal | TakerStableParis = 0.00001m |
Stable Pairs taker fee Tab "Stable pairs" on More... | |
Static Protected Member Functions | |
static decimal | GetFeePercentage (DateTime utcTime, bool isMaker, bool isStableCoin, decimal makerFee, decimal takerFee) |
Returns the maker/taker fee percentage effective at the requested date. More... | |
Represents a fee model specific to Coinbase. This class extends the base fee model.
Definition at line 25 of file CoinbaseFeeModel.cs.
QuantConnect.Orders.Fees.CoinbaseFeeModel.CoinbaseFeeModel | ( | decimal | makerFee = MakerAdvanced1 , |
decimal | takerFee = TakerAdvanced1 |
||
) |
Create Coinbase Fee model setting fee values
makerFee | Maker fee value |
takerFee | Taker fee value |
By default: use Level Advanced 1 fees
Definition at line 61 of file CoinbaseFeeModel.cs.
|
virtual |
Get the fee for this order in quote currency
parameters | A OrderFeeParameters object containing the security and order |
Reimplemented from QuantConnect.Orders.Fees.FeeModel.
Definition at line 73 of file CoinbaseFeeModel.cs.
|
staticprotected |
Returns the maker/taker fee percentage effective at the requested date.
utcTime | The date/time requested (UTC) |
isMaker | true if the maker percentage fee is requested, false otherwise |
isStableCoin | true if the order security symbol is a StableCoin, false otherwise |
makerFee | maker fee amount |
takerFee | taker fee amount |
Definition at line 112 of file CoinbaseFeeModel.cs.
|
static |
Level Advanced 1 maker fee Tab "Fee tiers" on
Definition at line 31 of file CoinbaseFeeModel.cs.
|
static |
Level Advanced 1 taker fee Tab "Fee tiers" on
Definition at line 37 of file CoinbaseFeeModel.cs.
|
static |
Stable Pairs maker fee Tab "Stable pairs" on
Definition at line 43 of file CoinbaseFeeModel.cs.
|
static |
Stable Pairs taker fee Tab "Stable pairs" on
Definition at line 49 of file CoinbaseFeeModel.cs.