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.
basic_buy_bot
Tyler Goodlet 2023-06-17 13:50:22 -04:00
parent 249d358737
commit 60b0b721c5
1 changed files with 6 additions and 1 deletions

View File

@ -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.