Get Auto Repay Mode
Get spot automatic repayment mode
HTTP Request
GET/v5/spot-margin-trade/get-auto-repay-modeRequest Parameters
| Parameter | Required | Type | Comments |
|---|---|---|---|
| currency | false | string | Coin name, uppercase only. If currency is not passed, automatic repay mode for all currencies will be returned. |
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| data | array | Object |
| > currency | string | Coin name, uppercase only. |
| > autoRepayMode | string |
|
Request Example
- HTTP
- Python
- Node.js
GET /v5/spot-margin-trade/get-auto-repay-mode?currency=ETH HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1672299806626
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="xxxxxxxxxxxxxxxxxx",
api_secret="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
)
print(session.get_auto_repay_mode(
currency="ETH"
))
Response Example
{
"retCode": 0,
"retMsg": "Success",
"result": {
"data": [
{
"autoRepayMode": "1",
"currency": "ETH"
}
]
},
"retExtInfo": {},
"time": 1766977353904
}