跳到主要内容

领取策略赠予

POST/research/gifts/{gift_code}/claim在线调试
POST https://api.shengkezhi.com/open/v1/research/gifts/GIFT-8K3M2P/claim
等效 curl
curl "https://api.shengkezhi.com/open/v1/research/gifts/GIFT-8K3M2P/claim" \
  -H "Authorization: Bearer sk_xxx"

POST /research/gifts/{gift_code}/claim — 领取策略赠予。

需在请求头携带 Authorization: Bearer sk_xxx。

请求参数​

参数位置类型必填默认值说明
gift_codepathstring是-32 位十六进制赠予码

响应 data​

字段类型必填说明
from_user_idstring是赠予方 user_id。
itemsGiftClaimItem[]是逐条落地结果,顺序与码内策略一致。

GiftClaimItem 字段​

字段类型必填说明
origin_strategy_codestring是赠予方侧的原编号。
strategy_codestring是落到本人实盘库里的编号;与原编号撞名且内容不同时带 _G{n} 后缀。
insertedboolean是本次是否新写入;本库已有内容一致的同名策略时为 false。
renamedboolean是是否因撞名而改了编号。

调用示例​

curl -X POST "https://api.shengkezhi.com/open/v1/research/gifts/GIFT-8K3M2P/claim" \
-H "Authorization: Bearer sk_xxx"
{
"code": 0,
"msg": "ok",
"data": {
"from_user_id": "a79dfc93b7e64a6cbbe26f2a787a6bad",
"items": [
{
"origin_strategy_code": "STRAT_MOMENTUM_001",
"strategy_code": "STRAT_MOMENTUM_001",
"inserted": false,
"renamed": false
}
]
}
}```