Appearance
转账融资接口
deposit - 入金(增加账户资金)
python
rqalpha.api.deposit(account_type, amount, receiving_days=0)
入金(增加账户资金)
参数
参数名 | 类型 | 说明 |
---|---|---|
account_type | str | 账户类型 |
amount | float | 入金金额 |
receiving_days | int | 入金到账天数,0 表示立刻到账,1 表示资金在下一个交易日盘前到账 |
返回
None
withdraw - 出金(减少账户资金)
python
rqalpha.api.withdraw(account_type, amount)
出金(减少账户资金)
参数
参数名 | 类型 | 说明 |
---|---|---|
account_type | str | 账户类型 |
amount | float | 减少金额 |
返回
None
finance - 融资(增加账户资金,增加负债)
python
rqalpha.api.finance(amount, account_type=DEFAULT_ACCOUNT_TYPE.STOCK)
融资
参数
参数名 | 类型 | 说明 |
---|---|---|
amount | float | 融资金额 |
account_type | str | 融资账户 |
返回
None
repay - 还款(减少账户资金,减少负债)
python
rqalpha.api.repay(amount, account_type=DEFAULT_ACCOUNT_TYPE.STOCK)
进行还款操作,减少账户资金同时减少负债。
参数
参数名 | 类型 | 说明 |
---|---|---|
amount | float | 还款金额 |
account_type | str | 还款账户 |
返回
None