# 刷新操作说明
返回值
调用不同的刷新接口后,默认都会统一返回 total
、valid
、tradeIds
等信息,示例如下:
响应参数 | 描述 |
---|---|
code | 状态码 |
msg | 系统提示信息 |
success | 请求是否处理成功 |
total | 查询到的总记录数 |
valid | 成功刷新的记录数 |
tradeIds | 成功刷新的交易明细的 tradeID |
{
"code": "00000",
"msg": "success",
"data": {
"total": 2,
"valid": 2,
"tradeIds": ["10001", "10002"]
},
"success": true
}
# 利率插值刷新
# RateD 刷新
请求参数 | 必填 | 描述 |
---|---|---|
apiId | 是 | API 的唯一标识(不可自定义) |
table | 是 | 表信息,用于指定数据库表的名称,即交易明细表和利率曲线表 |
type | 是 | 表数据的操作类型 |
wheres | 是 | where 条件,多个查询条件默认使用 and 进行拼接;若其中有字段值与表里的字段名一样,则必须使用单括号包裹对应的字段值,例如 ["entity = 'entity'"] |
- 例如:单条刷新
{
"apiId": "refresh_interest_rated",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx",
"curve": "md1"
},
"operate": {
"type": "business",
"wheres": [
"tradeID = 10001"
]
}
}
- 例如:批量刷新
{
"apiId": "refresh_interest_rated",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx",
"curve": "md1"
},
"operate": {
"type": "business",
"wheres": [
"tradeID in (10001, 10002)"
]
}
}
# RateF 刷新
请求参数 | 必填 | 描述 |
---|---|---|
apiId | 是 | API 的唯一标识(不可自定义) |
table | 是 | 表信息,用于指定数据库表的名称,即交易明细表和利率曲线表 |
type | 是 | 表数据的操作类型 |
wheres | 是 | where 条件,多个查询条件默认使用 and 进行拼接;若其中有字段值与表里的字段名一样,则必须使用单括号包裹对应的字段值,例如 ["entity = 'entity'"] |
- 例如:单条刷新
{
"apiId": "refresh_interest_ratef",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx",
"curve": "md1"
},
"operate": {
"type": "business",
"wheres": [
"tradeID = 10001"
]
}
}
- 例如:批量刷新
{
"apiId": "refresh_interest_ratef",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx",
"curve": "md1"
},
"operate": {
"type": "business",
"wheres": [
"tradeID in (10001, 10002)"
]
}
}
# 波动率插值刷新
请求参数 | 必填 | 描述 |
---|---|---|
apiId | 是 | API 的唯一标识(不可自定义) |
table | 是 | 表信息,用于指定数据库表的名称,即交易明细表和波动率曲面表 |
type | 是 | 表数据的操作类型 |
wheres | 是 | where 条件,多个查询条件默认使用 and 进行拼接;若其中有字段值与表里的字段名一样,则必须使用单括号包裹对应的字段值,例如 ["entity = 'entity'"] |
- 例如:单条刷新
{
"apiId": "refresh_delta_vol",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx",
"surface": "md1"
},
"operate": {
"type": "business",
"wheres": [
"tradeID = 10001"
]
}
}
- 例如:批量刷新
{
"apiId": "refresh_delta_vol",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx",
"surface": "md1"
},
"operate": {
"type": "business",
"wheres": [
"tradeID in (10001, 10002)"
]
}
}
# Calendar 刷新
请求参数 | 必填 | 描述 |
---|---|---|
apiId | 是 | API 的唯一标识(不可自定义) |
table | 是 | 表信息,用于指定数据库表的名称,即交易明细表 |
type | 是 | 表数据的操作类型 |
wheres | 是 | where 条件,多个查询条件默认使用 and 进行拼接;若其中有字段值与表里的字段名一样,则必须使用单括号包裹对应的字段值,例如 ["entity = 'entity'"] |
- 例如:单条刷新
{
"apiId": "refresh_calendar",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx"
},
"operate": {
"type": "business",
"wheres": [
"tradeID = 10001"
]
}
}
- 例如:批量刷新
{
"apiId": "refresh_calendar",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx"
},
"operate": {
"type": "business",
"wheres": [
"tradeID in (10001, 10002)"
]
}
}
# Swap 刷新
请求参数 | 必填 | 描述 |
---|---|---|
apiId | 是 | API 的唯一标识(不可自定义) |
table | 是 | 表信息,用于指定数据库表的名称,即交易明细表 |
type | 是 | 表数据的操作类型 |
wheres | 是 | where 条件,多个查询条件默认使用 and 进行拼接;若其中有字段值与表里的字段名一样,则必须使用单括号包裹对应的字段值,例如 ["entity = 'entity'"] |
- 例如:单条刷新
{
"apiId": "refresh_calendar",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx"
},
"operate": {
"type": "business",
"wheres": [
"tradeID = 10001"
]
}
}
- 例如:批量刷新
{
"apiId": "refresh_calendar",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx"
},
"operate": {
"type": "business",
"wheres": [
"tradeID in (10001, 10002)"
]
}
}
# 估值刷新
请求参数 | 必填 | 描述 |
---|---|---|
apiId | 是 | API 的唯一标识(不可自定义) |
table | 是 | 表信息,用于指定数据库表的名称,即交易明细表 |
type | 是 | 表数据的操作类型 |
wheres | 是 | where 条件,多个查询条件默认使用 and 进行拼接;若其中有字段值与表里的字段名一样,则必须使用单括号包裹对应的字段值,例如 ["entity = 'entity'"] |
- 例如:单条刷新
{
"apiId": "refresh_valuation",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx"
},
"operate": {
"type": "business",
"wheres": [
"tradeID = 10001"
]
}
}
- 例如:批量刷新
{
"apiId": "refresh_valuation",
"table": {
"entity": "banka",
"desk": "opt",
"portfolio": "p01",
"instrument": "fx"
},
"operate": {
"type": "business",
"wheres": [
"tradeID in (10001, 10002)"
]
}
}
← 表操作说明