• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python _sell._side_Sell_函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中marketsim.gen._out.side._sell._side_Sell_函数的典型用法代码示例。如果您正苦于以下问题:Python _side_Sell_函数的具体用法?Python _side_Sell_怎么用?Python _side_Sell_使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了_side_Sell_函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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))
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_side_WithExpiry.py


示例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)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_price_Limit.py


示例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)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:7,代码来源:_queue.py


示例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))
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:7,代码来源:_side_price_peg.py


示例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)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:7,代码来源:_side_price_limit.py


示例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)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_side_price_Iceberg.py


示例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)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_side_Limit.py


示例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))
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_side_StopLoss.py


示例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))
开发者ID:xiaobozi,项目名称:marketsimulator,代码行数:7,代码来源:_price_limit.py


示例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)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:7,代码来源:_side_fixedbudget.py


示例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)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:7,代码来源:_side_market.py


示例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))
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:7,代码来源:_side_price_FloatingPrice.py


示例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))
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:7,代码来源:_side_price_immediateorcancel.py


示例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)
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:8,代码来源:_sidevolume_Limit.py


示例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)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:8,代码来源:_side_iceberg.py


示例16: __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._withexpiry import WithExpiry
     side = side if side is not None else deref_opt(_side_Sell_())
     proto = self.proto
     expiry = self.expiry
     return WithExpiry(proto(side), expiry)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:8,代码来源:_side_withexpiry.py


示例17: __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._curried._price_peg import price_Peg
     side = side if side is not None else _side_Sell_()
     volume = volume if volume is not None else _constant_Float(1.0)
     proto = self.proto
     return price_Peg(proto(side,volume))
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:8,代码来源:_sidevolume_price_Peg.py


示例18: __call__

 def __call__(self, side = None,price = 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._immediateorcancel import ImmediateOrCancel
     side = side if side is not None else _side_Sell_()
     price = price if price is not None else _constant_Float(100.0)
     proto = self.proto
     return ImmediateOrCancel(proto(side,price))
开发者ID:abensrhir,项目名称:marketsimulator,代码行数:8,代码来源:_sideprice_ImmediateOrCancel.py


示例19: __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._floatingprice import FloatingPrice
     side = side if side is not None else deref_opt(_side_Sell_())
     proto = self.proto
     floatingPrice = self.floatingPrice
     return FloatingPrice(proto(side), floatingPrice)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:8,代码来源:_sideprice_floatingprice.py


示例20: __init__

 def __init__(self, orderFactory = None, initialSize = None, side = None):
     from marketsim.gen._out.order._curried._sideprice_limit import sideprice_Limit_Float as _order__curried_sideprice_Limit_Float
     from marketsim import deref_opt
     from marketsim.gen._out.side._sell import Sell_ as _side_Sell_
     self.orderFactory = orderFactory if orderFactory is not None else deref_opt(_order__curried_sideprice_Limit_Float())
     self.initialSize = initialSize if initialSize is not None else 10
     self.side = side if side is not None else deref_opt(_side_Sell_())
     OneSide_Impl.__init__(self)
开发者ID:SemanticBeeng,项目名称:marketsimulator,代码行数:8,代码来源:_ladder.py



注:本文中的marketsim.gen._out.side._sell._side_Sell_函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python registry.insert函数代码示例发布时间:2022-05-27
下一篇:
Python _observablefloat.Observablefloat类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap