Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuizi7 committed Aug 28, 2018
1 parent 6b8f66f commit c074500
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def _on_order_pending_new(self, event):
def _on_order_unsolicited_update(self, event):
if self != event.account:
return
order = event.order
if order.filled_quantity != 0:
self._frozen_cash -= order.unfilled_quantity / order.quantty * self._frozen_cash_of_order(order)
else:
Expand Down
Binary file modified rqalpha/utils/translations/zh_Hans_CN/LC_MESSAGES/messages.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions rqalpha/utils/translations/zh_Hans_CN/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -388,19 +388,19 @@ msgstr "订单创建失败: 基金{order_book_id}在{date}不能赎回。"
msgid ""
"Order Creation Failed: limit order price {limit_price} is higher than "
"limit up {limit_up}."
msgstr "订单单创建失败: 订单价格 {limit_price} 超过当天涨停板价格 {limit_up}。"
msgstr "订单创建失败: 订单价格 {limit_price} 超过当天涨停板价格 {limit_up}。"

#: rqalpha/mod/rqalpha_mod_sys_risk/validators/price_validator.py:45
msgid ""
"Order Creation Failed: limit order price {limit_price} is lower than "
"limit down {limit_down}."
msgstr "订单单创建失败: 订单价格 {limit_price} 低于当天跌停板价格 {limit_down}。"
msgstr "订单创建失败: 订单价格 {limit_price} 低于当天跌停板价格 {limit_down}。"

#: rqalpha/mod/rqalpha_mod_sys_risk/validators/stock_position_validator.py:34
msgid ""
"Order Creation Failed: not enough stock {order_book_id} to sell, you want"
" to sell {quantity}, sellable {sellable}"
msgstr "订单单创建失败: 仓位不足。平仓量: {quantity},可平数量: {sellable}。"
msgstr "订单创建失败: 仓位不足。平仓量: {quantity},可平数量: {sellable}。"

#: rqalpha/mod/rqalpha_mod_sys_simulation/matcher.py:74
#: rqalpha/mod/rqalpha_mod_sys_simulation/signal_broker.py:68
Expand Down

0 comments on commit c074500

Please sign in to comment.