资金与划转

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

划转记录

操作名

TradeApiService.SEGMENT_FUND_HISTORY = segment_fund_history. 使用服务端方法 segment_fund_history。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<SegmentFundsResponse>

ModelValue: SegmentFundModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullAuto-filled if emptyTradeClient uses DefaultAccount when empty
SecretKeystringsecret_keynullno
FromSegmentSegmentTypefrom_segmentNone (omitted if not set)Optional
ToSegmentSegmentTypeto_segmentNone (omitted if not set)Optional
CurrencyCurrencycurrencyNone (omitted if not set)Optional
AmountDoubleamountNone (omitted if not set)Optional

返回

SegmentFundsResponse inherits TigerResponse; its data property is 列表,元素为 SegmentFundItem. Key SDK fields: Id: Int64, FromSegment: string, ToSegment: string, Currency: string, Amount: Double, Status: SegmentFundStatus, StatusDesc: string, Message: string.

示例

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

返回示例

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

可划转资金查询

操作名

TradeApiService.SEGMENT_FUND_AVAILABLE = segment_fund_available. 使用服务端方法 segment_fund_available。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<SegmentFundAvailableResponse>

ModelValue: SegmentFundModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullAuto-filled if emptyTradeClient uses DefaultAccount when empty
SecretKeystringsecret_keynullno
FromSegmentSegmentTypefrom_segmentNone (omitted if not set)Optional
ToSegmentSegmentTypeto_segmentNone (omitted if not set)Optional
CurrencyCurrencycurrencyNone (omitted if not set)Optional
AmountDoubleamountNone (omitted if not set)Optional

返回

SegmentFundAvailableResponse inherits TigerResponse; its data property is 列表,元素为 SegmentFundAvailableItem. Key SDK fields: FromSegment: string, Currency: string, Amount: Double.

示例

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

返回示例

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

资金划转

操作名

TradeApiService.TRANSFER_FUND = transfer_fund. 使用服务端方法 transfer_fund。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<DepositWithdrawResponse>

ModelValue: DepositWithdrawModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullAuto-filled if emptyTradeClient uses DefaultAccount when empty
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 inherits TigerResponse; its data property is 列表,元素为 DepositWithdrawItem. Key SDK fields: Id: string, RefId: string, Type: string, TypeDesc: string, Currency: string, Amount: double, BusinessDate: string, CompletedStatus: string.

示例

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

返回示例

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

资金明细

操作名

TradeApiService.FUND_DETAILS = fund_details. 使用服务端方法 fund_details。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<FundDetailsResponse>

ModelValue: FundDetailsModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullAuto-filled if emptyTradeClient uses DefaultAccount when empty
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 inherits TigerResponse; its data property is FundDetailsPageItem. Key SDK fields: Page: int, Limit: int, ItemCount: int, PageCount: int, Timestamp: long, Items: list of FundDetailsItem.

示例

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

返回示例

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

划转分部资金

操作名

TradeApiService.TRANSFER_SEGMENT_FUND = transfer_segment_fund. 使用服务端方法 transfer_segment_fund。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<SegmentFundResponse>

ModelValue: SegmentFundModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullAuto-filled if emptyTradeClient uses DefaultAccount when empty
SecretKeystringsecret_keynullno
FromSegmentSegmentTypefrom_segmentNone (omitted if not set)Optional
ToSegmentSegmentTypeto_segmentNone (omitted if not set)Optional
CurrencyCurrencycurrencyNone (omitted if not set)Optional
AmountDoubleamountNone (omitted if not set)Optional

返回

SegmentFundResponse inherits TigerResponse; its data property is SegmentFundItem. Key SDK fields: Id: Int64, FromSegment: string, ToSegment: string, Currency: string, Amount: Double, Status: SegmentFundStatus, StatusDesc: string, Message: string.

示例

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

返回示例

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

取消划转

操作名

TradeApiService.CANCEL_SEGMENT_FUND = cancel_segment_fund. 使用服务端方法 cancel_segment_fund。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<SegmentFundResponse>

ModelValue: SegmentFundModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullAuto-filled if emptyTradeClient uses DefaultAccount when empty
SecretKeystringsecret_keynullno
FromSegmentSegmentTypefrom_segmentNone (omitted if not set)Optional
ToSegmentSegmentTypeto_segmentNone (omitted if not set)Optional
CurrencyCurrencycurrencyNone (omitted if not set)Optional
AmountDoubleamountNone (omitted if not set)Optional

返回

SegmentFundResponse inherits TigerResponse; its data property is SegmentFundItem. Key SDK fields: Id: Int64, FromSegment: string, ToSegment: string, Currency: string, Amount: Double, Status: SegmentFundStatus, StatusDesc: string, Message: string.

示例

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

返回示例

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

外汇下单

操作名

TradeApiService.PLACE_FOREX_ORDER = place_forex_order. 使用服务端方法 place_forex_order。这是 *ApiService 常量,不是客户端成员方法。

请求

TigerRequest<ForexTradeOrderResponse>

ModelValue: ForexTradeOrderModel.

参数

SDK propertyC# typeAPI fieldSDK defaultRequiredConstraints
LangLanguagelangNone (omitted if not set)no
Accountstring (nullable)accountnullAuto-filled if emptyTradeClient uses DefaultAccount when empty
SecretKeystringsecret_keynullno
SourceCurrencyCurrencysource_currencyNone (omitted if not set)Optional
SourceAmountDoublesource_amountNone (omitted if not set)Optional
TargetCurrencyCurrencytarget_currencyNone (omitted if not set)Optional
SegTypeSegmentTypeseg_typeNone (omitted if not set)Optional
TimeInForceTimeInForcetime_in_forceTimeInForce.DAYOptional

返回

ForexTradeOrderResponse inherits TigerResponse; its data property is TradeOrder. Key SDK fields: Symbol: string, Market: string, SecType: string, Currency: string, Expiry: string, Strike: string, Right: string, Multiplier: double.

示例

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

返回示例

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

Did this page help you?