From 60b0b721c5776a3e81efbc780cce964850679657 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 17 Jun 2023 13:50:22 -0400 Subject: [PATCH] Split out crypto$ derivs into separate type set For crypto derivatives (at least futes), yes they are margined, but generally not around a single unit of vlm (like equities or commodities futes) so don't pre-set the order mode allocator to use a #unit limit, $limit is fine. --- piker/accounting/_mktinfo.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/piker/accounting/_mktinfo.py b/piker/accounting/_mktinfo.py index 1ac85369..c1f14f9f 100644 --- a/piker/accounting/_mktinfo.py +++ b/piker/accounting/_mktinfo.py @@ -48,12 +48,15 @@ _underlyings: list[str] = [ 'commodity', ] +_crypto_derivs: list[str] = [ + 'perpetual_future', + 'crypto_future', +] _derivs: list[str] = [ 'swap', 'future', 'continuous_future', - 'perpetual_future', 'option', 'futures_option', @@ -68,6 +71,8 @@ AssetTypeName: Literal[ _underlyings + _derivs + + + _crypto_derivs ] # egs. stock, futer, option, bond etc.