PTrade账户、持仓与对账
market_fund_transfer
用于极速柜台双中心之间资金调拨。
原型
market_fund_transfer(exchange_type, occur_balance)
适用环境
该函数仅在股票交易模块可用
释义
用于极速柜台双中心之间资金调拨。
注意事项
如要使用该函数,需咨询券商当前柜台是否支持。
当前仅支持ATP柜台双中心之间资金调拨。
参数
exchange_type(str):交易类别,1为上海、2为深圳。
occur_balance(float):发生金额(单位:元,最小精度:0.01元)。
返回值
返回调拨是否成功True/False(bool)。
示例
def initialize(context):
g.security = '600570.SS'
set_universe(g.security)
def before_trading_start(context, data):
# 转入沪A极速柜台100000元
market_fund_transfer('1', 100000)
def handle_data(context, data):
pass