本文整理汇总了Python中marketsim.gen._out.side._sell._side_Sell_函数的典型用法代码示例。如果您正苦于以下问题:Python _side_Sell_函数的具体用法?Python _side_Sell_怎么用?Python _side_Sell_使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_side_Sell_函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim.gen._out.order._withexpiry import WithExpiry
side = side if side is not None else _side_Sell_()
expiry = self.expiry
proto = self.proto
return WithExpiry(expiry, proto(side))
示例2: __init__
def __init__(self, side = None, volume = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim.gen._out._constant import constant_Float as _constant_Float
from marketsim import rtti
self.side = side if side is not None else _side_Sell_()
self.volume = volume if volume is not None else _constant_Float(1.0)
rtti.check_fields(self)
示例3: __init__
def __init__(self, book = None, side = None):
from marketsim.gen._out.orderbook._oftrader import OfTrader_IAccount as _orderbook_OfTrader_IAccount
from marketsim import deref_opt
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
self.book = book if book is not None else deref_opt(_orderbook_OfTrader_IAccount())
self.side = side if side is not None else deref_opt(_side_Sell_())
Queue_Impl.__init__(self)
示例4: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim import deref_opt
from marketsim.gen._out.order._curried._price_peg import price_Peg
side = side if side is not None else deref_opt(_side_Sell_())
proto = self.proto
return price_Peg(proto(side))
示例5: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim import deref_opt
from marketsim.gen._out.order._curried._price_limit import price_Limit
side = side if side is not None else deref_opt(_side_Sell_())
volume = self.volume
return price_Limit(side, volume)
示例6: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim.gen._out.order._curried._price_iceberg import price_Iceberg
side = side if side is not None else _side_Sell_()
proto = self.proto
lotSize = self.lotSize
return price_Iceberg(proto(side), lotSize)
示例7: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim.gen._out.order._limit import Limit
side = side if side is not None else _side_Sell_()
price = self.price
volume = self.volume
return Limit(side, price, volume)
示例8: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim.gen._out.order._stoploss import StopLoss
side = side if side is not None else _side_Sell_()
maxloss = self.maxloss
proto = self.proto
return StopLoss(maxloss, proto(side))
示例9: __init__
def __init__(self, side=None, volume=None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim import deref_opt
from marketsim.gen._out._constant import constant_Float as _constant_Float
self.side = side if side is not None else deref_opt(_side_Sell_())
self.volume = volume if volume is not None else deref_opt(_constant_Float(1.0))
示例10: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim import deref_opt
from marketsim.gen._out.order._fixedbudget import FixedBudget
side = side if side is not None else deref_opt(_side_Sell_())
budget = self.budget
return FixedBudget(side, budget)
示例11: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim import deref_opt
from marketsim.gen._out.order._market import Market
side = side if side is not None else deref_opt(_side_Sell_())
volume = self.volume
return Market(side, volume)
示例12: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim.gen._out.order._curried._price_floatingprice import price_FloatingPrice
side = side if side is not None else _side_Sell_()
floatingPrice = self.floatingPrice
proto = self.proto
return price_FloatingPrice(floatingPrice, proto(side))
示例13: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim import deref_opt
from marketsim.gen._out.order._curried._price_immediateorcancel import price_ImmediateOrCancel
side = side if side is not None else deref_opt(_side_Sell_())
proto = self.proto
return price_ImmediateOrCancel(proto(side))
示例14: __call__
def __call__(self, side = None,volume = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim.gen._out._constant import constant_Float as _constant_Float
from marketsim.gen._out.order._limit import Limit
side = side if side is not None else _side_Sell_()
volume = volume if volume is not None else _constant_Float(1.0)
price = self.price
return Limit(side, price, volume)
示例15: __call__
def __call__(self, side = None):
from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
from marketsim import deref_opt
from marketsim.gen._out.order._iceberg import Iceberg
side = side if side is not None else deref_opt(_side_Sell_())
proto = self.proto
lotSize = self.lotSize
return Iceberg(proto(side), lotSize)