资金与划转

状态变更操作必须防止重复提交。

划转记录

操作名

TradeApiService.SEGMENT_FUND_HISTORY = segment_fund_history。该常量用于设置 TigerRequest.ApiMethodName。

请求

TigerRequest<SegmentFundsResponse>

ModelValue: SegmentFundModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullAuto-filled if empty为空时 TradeClient 从 TigerConfig.DefaultAccount 注入;若仍为空则验证失败
SecretKeystringsecret_keynullno—
FromSegmentSegmentTypefrom_segmentCLR 默认值;序列化时省略Optional—
ToSegmentSegmentTypeto_segmentCLR 默认值;序列化时省略Optional—
CurrencyCurrencycurrencyCLR 默认值;序列化时省略Optional—
AmountDoubleamountCLR 默认值;序列化时省略Optional—

返回

SegmentFundsResponse 继承 TigerResponse;其 Data 为 List<SegmentFundItem>。

示例

TigerRequest<SegmentFundsResponse> request = new()
{
    ApiMethodName = TradeApiService.SEGMENT_FUND_HISTORY,
    ModelValue = new SegmentFundModel { Account = tradeClient.GetDefaultAccount, FromSegment = SegmentType.SEC, ToSegment = SegmentType.FUT, Currency = Currency.USD, Amount = 1 }
};
SegmentFundsResponse? response = await tradeClient.ExecuteAsync(request);

响应类型

List<SegmentFundItem>? data = response?.Data; // response 或 data 缺失时为 null

Data 字段(每个 SegmentFundItem)

字段API 字段C# 类型说明
IdidInt64划转记录标识
FromSegmentfromSegmentstring转出账户分区
ToSegmenttoSegmentstring转入账户分区
Currencycurrencystring划转币种
AmountamountDouble划转金额
StatusstatusSegmentFundStatus划转状态
StatusDescstatusDescstring划转状态说明
Messagemessagestring划转结果消息
SettledTimesettledAtInt64结算时间戳
UpdatedTimeupdatedAtInt64更新时间戳
CreatedTimecreatedAtInt64创建时间戳

返回示例

{
  "code": 0,
  "message": "success",
  "timestamp": 1785528000000,
  "data": [
    {
      "id": 10001,
      "fromSegment": "SEC",
      "toSegment": "FUT",
      "currency": "USD",
      "amount": 5000.0,
      "status": "SUCCESS",
      "statusDesc": "Success"
    }
  ]
}

频率限制

基础额度:每分钟 60 次。

可划转资金查询

操作名

TradeApiService.SEGMENT_FUND_AVAILABLE = segment_fund_available。该常量用于设置 TigerRequest.ApiMethodName。

请求

TigerRequest<SegmentFundAvailableResponse>

ModelValue: SegmentFundModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullAuto-filled if empty为空时 TradeClient 从 TigerConfig.DefaultAccount 注入;若仍为空则验证失败
SecretKeystringsecret_keynullno—
FromSegmentSegmentTypefrom_segmentCLR 默认值;序列化时省略Optional—
ToSegmentSegmentTypeto_segmentCLR 默认值;序列化时省略Optional—
CurrencyCurrencycurrencyCLR 默认值;序列化时省略Optional—
AmountDoubleamountCLR 默认值;序列化时省略Optional—

返回

SegmentFundAvailableResponse 继承 TigerResponse;其 Data 为 List<SegmentFundAvailableItem>。

示例

TigerRequest<SegmentFundAvailableResponse> request = new()
{
    ApiMethodName = TradeApiService.SEGMENT_FUND_AVAILABLE,
    ModelValue = new SegmentFundModel { Account = tradeClient.GetDefaultAccount, FromSegment = SegmentType.SEC, ToSegment = SegmentType.FUT, Currency = Currency.USD, Amount = 1 }
};
SegmentFundAvailableResponse? response = await tradeClient.ExecuteAsync(request);

响应类型

List<SegmentFundAvailableItem>? data = response?.Data; // response 或 data 缺失时为 null

Data 字段(每个 SegmentFundAvailableItem)

字段API 字段C# 类型说明
FromSegmentfromSegmentstring资金所在账户分区
Currencycurrencystring币种
AmountamountDouble可划转金额

返回示例

{
  "code": 0,
  "message": "success",
  "timestamp": 1785528000000,
  "data": [
    {"segment": "SEC", "currency": "USD", "availableFunds": 50000.0},
    {"segment": "FUT", "currency": "USD", "availableFunds": 20000.0}
  ]
}

频率限制

基础额度:每分钟 60 次。

资金划转

操作名

TradeApiService.TRANSFER_FUND = transfer_fund。该常量用于设置 TigerRequest.ApiMethodName。

请求

TigerRequest<DepositWithdrawResponse>

ModelValue: DepositWithdrawModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullAuto-filled if empty为空时 TradeClient 从 TigerConfig.DefaultAccount 注入;若仍为空则验证失败
SecretKeystringsecret_keynullno—
SegTypeSegmentType (nullable)seg_typenullOptional—
StartDatestringstart_datenullOptionalTimestamp or date format; maintain chronological order
EndDatestringend_datenullOptionalTimestamp or date format; maintain chronological order
CurrencystringcurrencynullOptional—
Limitint (nullable)limitnullOptionalPositive integer
Pageint (nullable)pagenullOptionalPositive integer

返回

DepositWithdrawResponse 继承 TigerResponse;其 Data 为 List<DepositWithdrawItem>。

示例

TigerRequest<DepositWithdrawResponse> request = new()
{
    ApiMethodName = TradeApiService.TRANSFER_FUND,
    ModelValue = new DepositWithdrawModel { Account = tradeClient.GetDefaultAccount, SegType = SegmentType.SEC, StartDate = "2026-01-01", EndDate = "2026-01-31", Currency = "USD" }
};
DepositWithdrawResponse? response = await tradeClient.ExecuteAsync(request);

响应类型

List<DepositWithdrawItem>? data = response?.Data; // response 或 data 缺失时为 null

Data 字段(每个 DepositWithdrawItem)

字段API 字段C# 类型说明
Ididstring资金记录标识
RefIdrefIdstring关联记录标识
Typetypestring资金变动类型
TypeDesctypeDescstring资金变动类型说明
Currencycurrencystring币种
Amountamountdouble变动金额
BusinessDatebusinessDatestring业务日期
CompletedStatuscompletedStatusstring完成状态
UpdatedAtupdatedAtlong更新时间戳
CreatedAtcreatedAtlong创建时间戳

返回示例

{
  "code": 0,
  "message": "success",
  "timestamp": 1785528000000,
  "data": {
    "id": 10002
  }
}

频率限制

基础额度:每分钟 60 次。

资金明细

操作名

TradeApiService.FUND_DETAILS = fund_details。该常量用于设置 TigerRequest.ApiMethodName。

请求

TigerRequest<FundDetailsResponse>

ModelValue: FundDetailsModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullAuto-filled if empty为空时 TradeClient 从 TigerConfig.DefaultAccount 注入;若仍为空则验证失败
SecretKeystringsecret_keynullno—
SegTypes列表,元素为 stringseg_typesnullOptional—
FundTypestringfund_typenullOptional—
CurrencystringcurrencynullOptional—
StartDatestringstart_datenullOptionalTimestamp or date format; maintain chronological order
EndDatestringend_datenullOptionalTimestamp or date format; maintain chronological order
Startlong (nullable)startnullOptional—
Limitlong (nullable)limitnullOptionalPositive integer

返回

FundDetailsResponse 继承 TigerResponse;其 Data 为 FundDetailsPageItem。

示例

TigerRequest<FundDetailsResponse> request = new()
{
    ApiMethodName = TradeApiService.FUND_DETAILS,
    ModelValue = new FundDetailsModel { Account = tradeClient.GetDefaultAccount, SegTypes = new List<string> { "SEC" }, Currency = "USD", StartDate = "2026-01-01", EndDate = "2026-01-31" }
};
FundDetailsResponse? response = await tradeClient.ExecuteAsync(request);

响应类型

FundDetailsPageItem? data = response?.Data; // response 或 data 缺失时为 null

Data 字段(FundDetailsPageItem)

字段API 字段C# 类型说明
Pagepageint当前页码
Limitlimitint每页数量
ItemCountitemCountint总记录数
PageCountpageCountint总页数
Timestamptimestamplong查询时间戳
ItemsitemsList<FundDetailsItem>资金明细列表
FundDetailsItem 字段API 字段C# 类型说明
Ididlong资金明细标识
Currencycurrencystring币种
Typetypestring资金变动类型
Descdescstring资金变动说明
ContractNamecontractNamestring关联合约名称
SegTypesegTypestring账户分区类型
Amountamountdouble变动金额
BusinessDatebusinessDatestring业务日期
UpdatedAtupdatedAtlong更新时间戳

返回示例

{
  "code": 0,
  "message": "success",
  "timestamp": 1785528000000,
  "data": {
    "netLiquidation": 125000.0,
    "totalCashValue": 50000.0,
    "settledCash": 48000.0,
    "buyingPower": 100000.0
  }
}

频率限制

基础额度:每分钟 10 次。

划转分部资金

操作名

TradeApiService.TRANSFER_SEGMENT_FUND = transfer_segment_fund。该常量用于设置 TigerRequest.ApiMethodName。

请求

TigerRequest<SegmentFundResponse>

ModelValue: SegmentFundModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullAuto-filled if empty为空时 TradeClient 从 TigerConfig.DefaultAccount 注入;若仍为空则验证失败
SecretKeystringsecret_keynullno—
FromSegmentSegmentTypefrom_segmentCLR 默认值;序列化时省略Optional—
ToSegmentSegmentTypeto_segmentCLR 默认值;序列化时省略Optional—
CurrencyCurrencycurrencyCLR 默认值;序列化时省略Optional—
AmountDoubleamountCLR 默认值;序列化时省略Optional—

返回

SegmentFundResponse 继承 TigerResponse;其 Data 为 SegmentFundItem。

示例

TigerRequest<SegmentFundResponse> request = new()
{
    ApiMethodName = TradeApiService.TRANSFER_SEGMENT_FUND,
    ModelValue = new SegmentFundModel { Account = tradeClient.GetDefaultAccount, FromSegment = SegmentType.SEC, ToSegment = SegmentType.FUT, Currency = Currency.USD, Amount = 1 }
};
SegmentFundResponse? response = await tradeClient.ExecuteAsync(request);

响应类型

SegmentFundItem? data = response?.Data; // response 或 data 缺失时为 null

Data 字段

响应数据结构说明
SegmentFundItem完整字段见划转记录的 Data 字段。

返回示例

{
  "code": 0,
  "message": "success",
  "timestamp": 1785528000000,
  "data": {
    "id": 10003
  }
}

频率限制

基础额度:每分钟 60 次。

取消划转

操作名

TradeApiService.CANCEL_SEGMENT_FUND = cancel_segment_fund。该常量用于设置 TigerRequest.ApiMethodName。

请求

TigerRequest<SegmentFundResponse>

ModelValue: SegmentFundModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullAuto-filled if empty为空时 TradeClient 从 TigerConfig.DefaultAccount 注入;若仍为空则验证失败
SecretKeystringsecret_keynullno—
FromSegmentSegmentTypefrom_segmentCLR 默认值;序列化时省略Optional—
ToSegmentSegmentTypeto_segmentCLR 默认值;序列化时省略Optional—
CurrencyCurrencycurrencyCLR 默认值;序列化时省略Optional—
AmountDoubleamountCLR 默认值;序列化时省略Optional—

返回

SegmentFundResponse 继承 TigerResponse;其 Data 为 SegmentFundItem。

示例

TigerRequest<SegmentFundResponse> request = new()
{
    ApiMethodName = TradeApiService.CANCEL_SEGMENT_FUND,
    ModelValue = new SegmentFundModel { Account = tradeClient.GetDefaultAccount, FromSegment = SegmentType.SEC, ToSegment = SegmentType.FUT, Currency = Currency.USD, Amount = 1 }
};
SegmentFundResponse? response = await tradeClient.ExecuteAsync(request);

响应类型

SegmentFundItem? data = response?.Data; // response 或 data 缺失时为 null

Data 字段

响应数据结构说明
SegmentFundItem完整字段见划转记录的 Data 字段。

返回示例

{
  "code": 0,
  "message": "success",
  "timestamp": 1785528000000,
  "data": {
    "id": 10003,
    "status": "CANCELLED"
  }
}

频率限制

基础额度:每分钟 60 次。

外汇下单

操作名

TradeApiService.PLACE_FOREX_ORDER = place_forex_order。该常量用于设置 TigerRequest.ApiMethodName。

请求

TigerRequest<ForexTradeOrderResponse>

ModelValue: ForexTradeOrderModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangCLR 默认值;序列化时省略no—
Accountstring (nullable)accountnullAuto-filled if empty为空时 TradeClient 从 TigerConfig.DefaultAccount 注入;若仍为空则验证失败
SecretKeystringsecret_keynullno—
SourceCurrencyCurrencysource_currencyCLR 默认值;序列化时省略Optional—
SourceAmountDoublesource_amountCLR 默认值;序列化时省略Optional—
TargetCurrencyCurrencytarget_currencyCLR 默认值;序列化时省略Optional—
SegTypeSegmentTypeseg_typeCLR 默认值;序列化时省略Optional—
TimeInForceTimeInForcetime_in_forceTimeInForce.DAYOptional—

返回

ForexTradeOrderResponse 继承 TigerResponse;其 Data 为 TradeOrder。

示例

TigerRequest<ForexTradeOrderResponse> request = new()
{
    ApiMethodName = TradeApiService.PLACE_FOREX_ORDER,
    ModelValue = new ForexTradeOrderModel { Account = tradeClient.GetDefaultAccount, SourceCurrency = Currency.USD, SourceAmount = 1, TargetCurrency = Currency.HKD, SegType = SegmentType.SEC }
};
ForexTradeOrderResponse? response = await tradeClient.ExecuteAsync(request);

响应类型

TradeOrder? data = response?.Data; // response 或 data 缺失时为 null

Data 字段

Data 为 TradeOrder:

字段API 字段C# 类型说明
Symbolsymbolstring合约代码
Marketmarketstring所属市场
SecTypesecTypestring证券类型
Currencycurrencystring计价币种
Expiryexpirystring到期日
Strikestrikestring行权价
Rightrightstring期权方向
Multipliermultiplierdouble合约乘数
Identifieridentifierstring合约标识
IdidInt64订单标识
OrderIdorderIdint订单号
ExternalIdexternalIdstring外部订单标识
ParentIdparentIdInt64父订单标识
Accountaccountstring账户号
Actionactionstring买卖方向
OrderTypeorderTypestring订单类型
LimitPricelimitPriceDouble限价
AuxPriceauxPriceDouble辅助价格
TrailingPercenttrailingPercentDouble跟踪百分比
TotalQuantitytotalQuantityInt64委托总数量
TotalQuantityScaletotalQuantityScaleInt32委托数量小数位数
FilledQuantityfilledQuantityInt64已成交数量
FilledQuantityScalefilledQuantityScaleInt32成交数量小数位数
TotalCashAmounttotalCashAmountDouble委托总金额
FilledCashAmountfilledCashAmountDouble已成交金额
RefundCashAmountrefundCashAmountDouble已退回金额
LastFillPricelastFillPriceDouble最近成交价
AvgFillPriceavgFillPriceDouble平均成交价
TimeInForcetimeInForcestring有效期类型
ExpireTimeexpireTimeInt64到期时间戳
GoodTillDategoodTillDatestring有效截止日期
OutsideRthoutsideRthBoolean是否允许常规交易时段外交易
TradingSessionTypetradingSessionTypestring交易时段类型
CommissioncommissionDouble佣金
GstgstDouble商品及服务税
RealizedPnlrealizedPnlDouble已实现盈亏
Remarkremarkstring订单备注
LiquidationliquidationBoolean是否为强制平仓订单
TriggerStatustriggerStatusstring条件单触发状态
OpenTimeopenTimeInt64订单创建时间戳
UpdateTimeupdateTimeInt64订单更新时间戳
LatestTimelatestTimeInt64最近状态更新时间戳
Namenamestring合约名称
LatestPricelatestPriceDouble最新价
AttrDescattrDescstring订单属性说明
UserMarkuserMarkstring用户标记
AttrListattrListList<string>订单属性列表
OcaGroupIdocaGroupIdintOCA 订单组标识
ComboLegscomboLegsstring组合订单腿信息
AllocAccountsallocAccountsList<string>分配账户列表
AllocSharesallocSharesList<Double>账户分配数量列表
AlgoStrategyalgoStrategystring算法策略
AlgoParametersalgoParametersList<TagValue>算法参数列表
StatusstatusOrderStatus订单状态
ReplaceStatusreplaceStatusstring改单状态
CancelStatuscancelStatusstring撤单状态
Sourcesourcestring订单来源
DiscountdiscountInt32折扣
CanModifycanModifyBoolean是否可改单
CanCancelcanCancelBoolean是否可撤单
IsOpenisOpenBoolean是否为未完成订单
ComboTypecomboTypestring组合订单类型
ComboTypeDesccomboTypeDescstring组合订单类型说明
LegslegsList<OrderLeg>订单腿列表

每个 TagValue:

字段API 字段C# 类型说明
Tagtagstring参数名称
Valuevaluestring?参数值

每个 OrderLeg:

字段API 字段C# 类型说明
Marketmarketstring所属市场
Currencycurrencystring计价币种
MultipliermultiplierDouble合约乘数
TotalQuantitytotalQuantityDouble委托总数量
FilledQuantityfilledQuantityDouble已成交数量
AvgFilledPriceavgFilledPriceDouble平均成交价
CreatedAtcreatedAtInt64创建时间戳
UpdatedAtupdatedAtInt64更新时间戳

返回示例

{
  "code": 0,
  "message": "success",
  "timestamp": 1785528000000,
  "data": {
    "id": 10004,
    "orderId": 890001
  }
}

Did this page help you?