Documentation ¶
Index ¶
- Variables
- type AccountType
- type ApiVersion
- type ApprovalLogin
- type BusinessDayRequest
- type BusinessDayResponse
- type CancelOrderRequest
- type CancelOrderResponse
- type CancelOrderStatus
- type CarryOverType
- type ChangePriceType
- type Channel
- type Client
- type CommonResponse
- type CommonStreamResponse
- type Contract
- type ContractStatus
- type ContractStreamResponse
- type CorrectCancelType
- type CorrectOrderRequest
- type CorrectOrderResponse
- type CurrentPriceType
- type DayKey
- type DeliveryAccountType
- type Environment
- type ErrorNo
- type EventType
- type ExRightType
- type Exchange
- type ExecutionTiming
- type ExecutionType
- type ExitPosition
- type ExitPositionType
- type ExitTermType
- type Hm
- type Hms
- type HoldPosition
- type IndicationPriceType
- type ListingType
- type LoginRequest
- type LoginResponse
- type LogoutRequest
- type LogoutResponse
- type MarginPosition
- type MarginPositionListRequest
- type MarginPositionListResponse
- type MarginType
- type MarginWalletRequest
- type MarginWalletResponse
- type MarketPrice
- type MarketPriceColumn
- type MarketPriceRequest
- type MarketPriceResponse
- type MarketPriceStreamResponse
- type MessageType
- type NewOrderRequest
- type NewOrderResponse
- type NewsStreamResponse
- type NumberBool
- type OperationStatusStreamResponse
- type Order
- type OrderDetailRequest
- type OrderDetailResponse
- type OrderInquiryStatus
- type OrderListRequest
- type OrderListResponse
- type OrderStatus
- type PartContractType
- type PrevCloseRatioType
- type ProductType
- type RequestTime
- type ResponseFormat
- type Session
- type SettlementType
- type Side
- type SpecificAccountType
- type StockExchangeMaster
- type StockExchangeMasterColumn
- type StockExchangeMasterRequest
- type StockExchangeMasterResponse
- type StockMaster
- type StockMasterColumn
- type StockMasterRequest
- type StockMasterResponse
- type StockPosition
- type StockPositionListRequest
- type StockPositionListResponse
- type StockSellableRequest
- type StockSellableResponse
- type StockWalletRequest
- type StockWalletResponse
- type StopOrderType
- type StopTradingType
- type StreamOrderStatus
- type StreamOrderType
- type StreamRequest
- type StreamResponse
- type SystemStatus
- type SystemStatusStreamResponse
- type TaxFree
- type TickGroup
- type TickGroupRequest
- type TickGroupResponse
- type TickGroupType
- type TradeRestriction
- type TradeType
- type TriggerType
- type Ym
- type Ymd
- type YmdHm
- type YmdHms
Constants ¶
This section is empty.
Variables ¶
var ( NilArgumentErr = errors.New("nil argument") EncodeErr = errors.New("encode error") StatusNotOkErr = errors.New("status not ok") CanNotCreateSessionErr = errors.New("cannot create session") UnmarshalFailedErr = errors.New("unmarshal failed") StreamError = errors.New("stream error") )
var AllMarketPriceColumns = []MarketPriceColumn{ MarketPriceColumnSection, MarketPriceColumnCurrentPrice, MarketPriceColumnCurrentPriceTime, MarketPriceColumnChangePriceType, MarketPriceColumnPrevDayRatio, MarketPriceColumnPrevDayPercent, MarketPriceColumnOpenPrice, MarketPriceColumnOpenPriceTime, MarketPriceColumnHighPrice, MarketPriceColumnHighPriceTime, MarketPriceColumnLowPrice, MarketPriceColumnLowPriceTime, MarketPriceColumnVolume, MarketPriceColumnAskSign, MarketPriceColumnAskPrice, MarketPriceColumnAskQuantity, MarketPriceColumnBidSign, MarketPriceColumnBidPrice, MarketPriceColumnBidQuantity, MarketPriceColumnExRightType, MarketPriceColumnDiscontinuityType, MarketPriceColumnStopHigh, MarketPriceColumnStopLow, MarketPriceColumnTradingAmount, MarketPriceColumnAskQuantityMarket, MarketPriceColumnBidQuantityMarket, MarketPriceColumnAskQuantityOver, MarketPriceColumnAskQuantity10, MarketPriceColumnAskPrice10, MarketPriceColumnAskQuantity9, MarketPriceColumnAskPrice9, MarketPriceColumnAskQuantity8, MarketPriceColumnAskPrice8, MarketPriceColumnAskQuantity7, MarketPriceColumnAskPrice7, MarketPriceColumnAskQuantity6, MarketPriceColumnAskPrice6, MarketPriceColumnAskQuantity5, MarketPriceColumnAskPrice5, MarketPriceColumnAskQuantity4, MarketPriceColumnAskPrice4, MarketPriceColumnAskQuantity3, MarketPriceColumnAskPrice3, MarketPriceColumnAskQuantity2, MarketPriceColumnAskPrice2, MarketPriceColumnAskQuantity1, MarketPriceColumnAskPrice1, MarketPriceColumnBidQuantity1, MarketPriceColumnBidPrice1, MarketPriceColumnBidQuantity2, MarketPriceColumnBidPrice2, MarketPriceColumnBidQuantity3, MarketPriceColumnBidPrice3, MarketPriceColumnBidQuantity4, MarketPriceColumnBidPrice4, MarketPriceColumnBidQuantity5, MarketPriceColumnBidPrice5, MarketPriceColumnBidQuantity6, MarketPriceColumnBidPrice6, MarketPriceColumnBidQuantity7, MarketPriceColumnBidPrice7, MarketPriceColumnBidQuantity8, MarketPriceColumnBidPrice8, MarketPriceColumnBidQuantity9, MarketPriceColumnBidPrice9, MarketPriceColumnBidQuantity10, MarketPriceColumnBidPrice10, MarketPriceColumnBidQuantityUnder, MarketPriceColumnVWAP, MarketPriceColumnPRP, }
AllMarketPriceColumns - 時価関連情報の全カラム
var NoChangeFloat float64 = math.Inf(-1)
NoChangeFloat - float64で変更しないことを指定
Functions ¶
This section is empty.
Types ¶
type AccountType ¶
type AccountType string
AccountType - 口座種別
const ( AccountTypeUnspecified AccountType = "" // 未指定 AccountTypeSpecific AccountType = "1" // 特定 AccountTypeGeneral AccountType = "3" // 一般 AccountTypeNISA AccountType = "5" // NISA AccountTypeGrowth AccountType = "6" // N成長 )
type ApiVersion ¶
type ApiVersion string
ApiVersion - APIのバージョン
const ( ApiVersionUnspecified ApiVersion = "" // 未指定 ApiVersionV4R3 ApiVersion = "v4r3" // V4R3 ApiVersionV4R4 ApiVersion = "v4r4" // V4R4 ApiVersionV4R5 ApiVersion = "v4r5" // V4R5 ApiVersionLatest = ApiVersionV4R5 )
type ApprovalLogin ¶
type ApprovalLogin string
ApprovalLogin - ログイン許可区分
const ( ApprovalLoginUnspecified ApprovalLogin = "" // 未指定 ApprovalLoginUnApproval ApprovalLogin = "0" // 不許可 ApprovalLoginApproval ApprovalLogin = "1" // 許可 ApprovalLoginOutOfService ApprovalLogin = "2" // 不許可(サービス時間外) ApprovalLoginTesting ApprovalLogin = "9" // 管理者のみ(テスト中) )
type BusinessDayResponse ¶
type BusinessDayResponse struct { CommonResponse DayKey DayKey // 日付KEY PrevDay1 time.Time // 1営業日前 PrevDay2 time.Time // 2営業日前 PrevDay3 time.Time // 3営業日前 Today time.Time // 当日日付 NextDay1 time.Time // 翌1営業日 NextDay2 time.Time // 翌2営業日 NextDay3 time.Time // 翌3営業日 NextDay4 time.Time // 翌4営業日 NextDay5 time.Time // 翌5営業日 NextDay6 time.Time // 翌6営業日 NextDay7 time.Time // 翌7営業日 NextDay8 time.Time // 翌8営業日 NextDay9 time.Time // 翌9営業日 NextDay10 time.Time // 翌10営業日 DeliveryDay time.Time // 株式受渡日 ProvisionalDeliveryDay time.Time // 株式仮決受渡日 BondDeliveryDay time.Time // 債券受渡日 }
BusinessDayResponse - 日付情報レスポンス
type CancelOrderRequest ¶
type CancelOrderRequest struct { OrderNumber string // 注文番号 ExecutionDate time.Time // 営業日 SecondPassword string // 第二パスワード }
CancelOrderRequest - 取消注文リクエスト
type CancelOrderResponse ¶
type CancelOrderResponse struct { CommonResponse ResultCode string // 結果コード ResultText string // 結果テキスト OrderNumber string // 注文番号 ExecutionDate time.Time // 営業日 DeliveryAmount float64 // 注文受渡金額 OrderDateTime time.Time // 注文日時 }
CancelOrderResponse - 取消注文レスポンス
type CancelOrderStatus ¶ added in v0.0.6
type CancelOrderStatus string
CancelOrderStatus - 訂正取消ステータス
const ( CancelOrderStatusUnspecified CancelOrderStatus = "" // 未指定 CancelOrderStatusNoCorrect CancelOrderStatus = "0" // 訂正なし CancelOrderStatusInCorrect CancelOrderStatus = "1" // 訂正中 CancelOrderStatusInCancel CancelOrderStatus = "2" // 取消中 CancelOrderStatusCorrected CancelOrderStatus = "3" // 訂正完了 CancelOrderStatusCanceled CancelOrderStatus = "4" // 取消完了 CancelOrderStatusCorrectFailed CancelOrderStatus = "5" // 訂正失敗 CancelOrderStatusCancelFailed CancelOrderStatus = "6" // 取消失敗 CancelOrderStatusSwitch CancelOrderStatus = "7" // 切替注文 CancelOrderStatusSwitched CancelOrderStatus = "8" // 切替完了 CancelOrderStatusSwitchFailed CancelOrderStatus = "9" // 切替注文失敗 )
type CarryOverType ¶
type CarryOverType string
CarryOverType - 繰越注文フラグ
const ( CarryOverTypeUnspecified CarryOverType = "" // 未指定 CarryOverTypeToday CarryOverType = "0" // 当日 CarryOverTypeCarry CarryOverType = "1" // 繰越注文 CarryOverTypeInvalid CarryOverType = "2" // 無効 )
type ChangePriceType ¶
type ChangePriceType string
ChangePriceType - 現値前値比較
const ( ChangePriceTypeUnspecified ChangePriceType = "" // 未指定 ChangePriceTypeNoChange ChangePriceType = "0000" // 事象なし ChangePriceTypeEqual ChangePriceType = "0056" // 現値=前値 ChangePriceTypeRise ChangePriceType = "0057" // 現値>前値 ChangePriceTypeDown ChangePriceType = "0058" // 現値<前値 ChangePriceTypeOpenAfterStopping ChangePriceType = "0059" // 中断板寄後の始値 ChangePriceTypeZaraba ChangePriceType = "0060" // ザラバ引け ChangePriceTypeClose ChangePriceType = "0061" // 板寄引け ChangePriceTypeCloseAtStopping ChangePriceType = "0062" // 中断引け ChangePriceTypeStopping ChangePriceType = "0068" // 売買停止引け )
type Channel ¶
type Channel string
Channel - チャネル
const ( ChannelUnspecified Channel = "" // 未指定 ChannelMeet Channel = "0" // 対面 ChannelPC Channel = "1" // PC ChannelCallCenter Channel = "2" // コールセンター ChannelCallCenter2 Channel = "3" // コールセンター ChannelCallCenter3 Channel = "4" // コールセンター ChannelMobile Channel = "5" // モバイル ChannelRich Channel = "6" // リッチ ChannelSmartPhone Channel = "7" // スマホ・タブレット ChannelIPadApp Channel = "8" // iPadアプリ ChannelHost Channel = "9" // HOST )
type Client ¶
type Client interface { Login(ctx context.Context, req LoginRequest) (*LoginResponse, error) // ログイン Logout(ctx context.Context, session *Session, req LogoutRequest) (*LogoutResponse, error) // ログアウト NewOrder(ctx context.Context, session *Session, req NewOrderRequest) (*NewOrderResponse, error) // 新規注文 CorrectOrder(ctx context.Context, session *Session, req CorrectOrderRequest) (*CorrectOrderResponse, error) // 訂正注文 CancelOrder(ctx context.Context, session *Session, req CancelOrderRequest) (*CancelOrderResponse, error) // 取消注文 StockWallet(ctx context.Context, session *Session, req StockWalletRequest) (*StockWalletResponse, error) // 買余力 MarginWallet(ctx context.Context, session *Session, req MarginWalletRequest) (*MarginWalletResponse, error) // 建余力&本日維持率 StockSellable(ctx context.Context, session *Session, req StockSellableRequest) (*StockSellableResponse, error) // 売却可能数量 OrderList(ctx context.Context, session *Session, req OrderListRequest) (*OrderListResponse, error) // 注文一覧 OrderDetail(ctx context.Context, session *Session, req OrderDetailRequest) (*OrderDetailResponse, error) // 注文一覧(詳細) StockPositionList(ctx context.Context, session *Session, req StockPositionListRequest) (*StockPositionListResponse, error) // 現物株リスト MarginPositionList(ctx context.Context, session *Session, req MarginPositionListRequest) (*MarginPositionListResponse, error) // 信用建玉リスト StockMaster(ctx context.Context, session *Session, req StockMasterRequest) (*StockMasterResponse, error) // 株式銘柄マスタ StockExchangeMaster(ctx context.Context, session *Session, req StockExchangeMasterRequest) (*StockExchangeMasterResponse, error) // 株式銘柄市場マスタ MarketPrice(ctx context.Context, session *Session, req MarketPriceRequest) (*MarketPriceResponse, error) // 時価関連情報 BusinessDay(ctx context.Context, session *Session, req BusinessDayRequest) ([]*BusinessDayResponse, error) // 日付情報 TickGroup(ctx context.Context, session *Session, req TickGroupRequest) ([]*TickGroupResponse, error) // 呼値 Stream(ctx context.Context, session *Session, req StreamRequest) (<-chan StreamResponse, <-chan error) // イベントストリーム }
type CommonResponse ¶
type CommonResponse struct { No int64 // 送信通番 SendDate time.Time // 送信日時 ReceiveDate time.Time // 受信日時 ErrorNo ErrorNo // エラー番号 ErrorMessage string // エラー文言 MessageType MessageType // 機能ID }
CommonResponse - レスポンスの共通的な項目
type CommonStreamResponse ¶ added in v0.0.6
type CommonStreamResponse struct { EventType EventType StreamNumber int64 StreamDateTime time.Time ErrorNo ErrorNo ErrorText string Body []byte }
func (*CommonStreamResponse) GetErrorNo ¶ added in v0.0.6
func (r *CommonStreamResponse) GetErrorNo() ErrorNo
func (*CommonStreamResponse) GetErrorText ¶ added in v0.0.6
func (r *CommonStreamResponse) GetErrorText() string
func (*CommonStreamResponse) GetEventType ¶ added in v0.0.6
func (r *CommonStreamResponse) GetEventType() EventType
type Contract ¶
type Contract struct { WarningCode string // 警告コード WarningText string // 警告テキスト Quantity float64 // 約定数量 Price float64 // 約定価格 DateTime time.Time // 約定日時 }
Contract - 約定失効
type ContractStatus ¶
type ContractStatus string
ContractStatus - 約定ステータス
const ( ContractStatusUnspecified ContractStatus = "" // 未指定 ContractStatusInOrder ContractStatus = "0" // 未約定 ContractStatusPart ContractStatus = "1" // 部分約定 ContractStatusDone ContractStatus = "2" // 全部約定 ContractStatusInContract ContractStatus = "3" // 約定中 )
type ContractStreamResponse ¶ added in v0.0.6
type ContractStreamResponse struct { CommonStreamResponse Provider string // プロバイダ(情報提供元) EventNo int64 // イベント番号 FirstTime bool // アラートフラグ StreamOrderType StreamOrderType // 通知種別 OrderNumber string // 注文番号 ExecutionDate time.Time // 営業日 ParentOrderNumber string // 親注文番号 ParentOrder bool // 注文種別 ProductType ProductType // 商品種別 IssueCode string // 銘柄コード Exchange Exchange // 市場コード Side Side // 売買区分 TradeType TradeType // 取引区分 ExecutionTiming ExecutionTiming // 執行条件 ExecutionType ExecutionType // 注文値段区分 Price float64 // 注文値段 Quantity float64 // 注文数量 CancelQuantity float64 // 取消数量 ExpireQuantity float64 // 失効数量 ContractQuantity float64 // 約定済数量 StreamOrderStatus StreamOrderStatus // 注文ステータス CarryOverType CarryOverType // 繰越フラグ CancelOrderStatus CancelOrderStatus // 訂正取消ステータス ContractStatus ContractStatus // 約定ステータス ExpireDate time.Time // 有効期限 SecurityExpireReason string // 失効理由コード SecurityContractPrice float64 // 約定値段 SecurityContractQuantity float64 // 約定数量 SecurityError string // 取引所エラーコード NotifyDateTime time.Time // 通知日時 IssueName string // 銘柄名称 CorrectExecutionTiming ExecutionTiming // 訂正執行条件 CorrectContractQuantity float64 // 訂正執行数量 CorrectExecutionType ExecutionType // 訂正注文値段区分 CorrectPrice float64 // 訂正注文値段 CorrectQuantity float64 // 訂正注文数量 CorrectExpireDate time.Time // 訂正注文期限 CorrectStopOrderType StopOrderType // 訂正逆指値条件 CorrectTriggerPrice float64 // 訂正逆指値段区分 CorrectStopOrderPrice float64 // 訂正逆指値段 }
type CorrectCancelType ¶
type CorrectCancelType string
CorrectCancelType - 訂正取消可否フラグ
const ( CorrectCancelTypeUnspecified CorrectCancelType = "" // 未指定 CorrectCancelTypeCorrectable CorrectCancelType = "0" // 訂正・取消可能 CorrectCancelTypeCancelable CorrectCancelType = "1" // 取消可能 CorrectCancelTypeInvalid CorrectCancelType = "2" // 訂正・取消不可 )
type CorrectOrderRequest ¶
type CorrectOrderRequest struct { OrderNumber string `json:"sOrderNumber"` // 注文番号 ExecutionDate time.Time `json:"sEigyouDay"` // 営業日 ExecutionTiming ExecutionTiming `json:"sCondition"` // 執行条件 OrderPrice float64 `json:"sOrderPrice"` // 注文値段 OrderQuantity float64 `json:"sOrderSuryou"` // 注文数量 ExpireDate time.Time // 注文期日 ExpireDateIsToday bool // 注文期日を当日 ExpireDateNoChange bool // 注文期日を変更しない TriggerPrice float64 `json:"sGyakusasiZyouken,string"` // 逆指値条件 StopOrderPrice float64 `json:"sGyakusasiPrice"` // 逆指値値段 SecondPassword string `json:"sSecondPassword"` // 第二パスワード }
CorrectOrderRequest - 訂正注文リクエスト
type CorrectOrderResponse ¶
type CorrectOrderResponse struct { CommonResponse ResultCode string // 結果コード ResultText string // 結果テキスト OrderNumber string // 注文番号 ExecutionDate time.Time // 営業日 DeliveryAmount float64 // 注文受渡金額 Commission float64 // 注文手数料 CommissionTax float64 // 注文消費税 OrderDateTime time.Time // 注文日時 }
CorrectOrderResponse - 訂正注文レスポンス
type CurrentPriceType ¶
type CurrentPriceType string
CurrentPriceType - 現在値種別
const ( CurrentPriceTypeUnspecified CurrentPriceType = "" // 未指定 CurrentPriceTypeNoChange CurrentPriceType = "0000" // 事象なし CurrentPriceTypeStopHigh CurrentPriceType = "0071" // ストップ高 CurrentPriceTypeStopLow CurrentPriceType = "0072" // ストップ安 )
type DeliveryAccountType ¶ added in v0.0.2
type DeliveryAccountType string
DeliveryAccountType - 口座種別
const ( DeliveryAccountTypeUnspecified DeliveryAccountType = "" // 未指定 DeliveryAccountTypeUnused DeliveryAccountType = "*" // 信用の場合のみ現引、現渡以外の取引 DeliveryAccountTypeSpecific DeliveryAccountType = "1" // 特定 DeliveryAccountTypeGeneral DeliveryAccountType = "3" // 一般 DeliveryAccountTypeNISA DeliveryAccountType = "5" // NISA )
type Environment ¶
type Environment string
Environment - 環境
const ( EnvironmentUnspecified Environment = "" // 未指定 EnvironmentProduction Environment = "production" // 本番環境 EnvironmentDemo Environment = "demo" // デモ環境 )
type ErrorNo ¶
type ErrorNo string
ErrorNo - エラーNo
const ( ErrorUnspecified ErrorNo = "" // 未指定 ErrorNoProblem ErrorNo = "0" // 問題なし ErrorNoData ErrorNo = "1" // データなし ErrorSessionInactive ErrorNo = "2" // 無効なセッション ErrorProgressedNumber ErrorNo = "6" // 処理済みの送信通番 ErrorExceedLimitTime ErrorNo = "8" // 送信日時からみたタイムアウト ErrorServiceOffline ErrorNo = "9" // サービス停止中 ErrorBadRequest ErrorNo = "-1" // 引数エラー ErrorDatabaseAccess ErrorNo = "-2" // データベースへのアクセスエラー ErrorServerAccess ErrorNo = "-3" // サーバへのアクセスエラー ErrorSystemOffline ErrorNo = "-12" // システム停止中 ErrorOffHours ErrorNo = "-62" // 情報提供時間外 )
type EventType ¶ added in v0.0.6
type EventType string
EventType - 通知種別
const ( EventTypeUnspecified EventType = "" // 未指定 EventTypeErrorStatus EventType = "ST" // エラーステータス情報配信指定 EventTypeKeepAlive EventType = "KP" // キープアライブ情報配信指定 EventTypeMarketPrice EventType = "FD" // 時価情報配信指定 EventTypeContract EventType = "EC" // 注文約定通知イベント配信指定 EventTypeNews EventType = "NS" // ニュース通知イベント配信指定 EventTypeSystemStatus EventType = "SS" // システムステータス配信指定 EventTypeOperationStatus EventType = "US" // 運用ステータス配信指定 )
type ExRightType ¶
type ExRightType string
ExRightType - 権利落ちフラグ
const ( ExRightTypeUnspecified ExRightType = "" // 未指定 ExRightTypeNothing ExRightType = "0" // 権利落なし ExRightTypeStockSplit ExRightType = "1" // 新株権利落ち ExRightTypeDividend ExRightType = "2" // 配当(中間)権利落ち ExRightTypeOther ExRightType = "4" // その他権利落ち ExRightTypeDividendAndOther ExRightType = "5" // その他・配当(中間)権利落ち ExRightTypeStockSplitAndOther ExRightType = "6" // 新株・その他権利落ち ExRightTypeStockSplitAndOtherMiddle ExRightType = "7" // 新株・その他(中間)権利落ち )
type ExecutionTiming ¶
type ExecutionTiming string
ExecutionTiming - 執行条件
const ( ExecutionTimingUnspecified ExecutionTiming = "" // 未指定 ExecutionTimingNoChange ExecutionTiming = "*" // 変更なし ExecutionTimingNormal ExecutionTiming = "0" // 指定なし ExecutionTimingOpening ExecutionTiming = "2" // 寄付 ExecutionTimingClosing ExecutionTiming = "4" // 引け ExecutionTimingFunari ExecutionTiming = "6" // 不成 )
type ExecutionType ¶
type ExecutionType string
ExecutionType - 注文値段区分
const ( ExecutionTypeUnspecified ExecutionType = "" // 未指定 ExecutionTypeUnused ExecutionType = " " // 未使用 ExecutionTypeMarket ExecutionType = "1" // 成行 ExecutionTypeLimit ExecutionType = "2" // 指値 ExecutionTypeHigher ExecutionType = "3" // 親注文より高い ExecutionTypeLower ExecutionType = "4" // 親注文より低い )
type ExitPosition ¶
type ExitPositionType ¶ added in v0.0.2
type ExitPositionType string
ExitPositionType - 建日種類(返済ポジション指定方法)
const ( ExitPositionTypeUnspecified ExitPositionType = "" // 未指定 ExitPositionTypeNoSelected ExitPositionType = "*" // 指定なし(現物または新規) ExitPositionTypeUnused ExitPositionType = " " // 未使用 ExitPositionTypePositionNumber ExitPositionType = "1" // 個別指定 ExitPositionTypeDayAsc ExitPositionType = "2" // 建日順 ExitPositionTypeProfitDesc ExitPositionType = "3" // 単価益順 ExitPositionTypeProfitAsc ExitPositionType = "4" // 単価損順 )
type ExitTermType ¶
type ExitTermType string
ExitTermType - 弁済区分
const ( ExitTermTypeUnspecified ExitTermType = "" // 未指定 ExitTermTypeNoLimit ExitTermType = "00" // 期限なし ExitTermTypeStandardMargin6m ExitTermType = "26" // 制度信用6ヶ月 ExitTermTypeStandardMarginNoLimit ExitTermType = "29" // 制度信用無期限 ExitTermTypeNegotiateMargin6m ExitTermType = "36" // 一般信用6ヶ月 ExitTermTypeNegotiateMarginNoLimit ExitTermType = "39" // 一般信用無期限 )
type HoldPosition ¶
type HoldPosition struct { WarningCode string // 警告コード WarningText string // 警告テキスト SortOrder int // 順位 ContractDate time.Time // 建日 EntryPrice float64 // 建単価 HoldQuantity float64 // 返済注文株数 ExitQuantity float64 // 約定株数 ExitPrice float64 // 約定単価 Commission float64 // 建手数料 Interest float64 // 順日歩 Premiums float64 // 逆日歩 RewritingFee float64 // 書換料 ManagementFee float64 // 管理費 LendingFee float64 // 貸株料 OtherFee float64 // その他 Profit float64 // 決済損益/受渡代金 }
HoldPosition - 決済注文建株
type IndicationPriceType ¶
type IndicationPriceType string
IndicationPriceType - 気配値種類
const ( IndicationPriceTypeUnspecified IndicationPriceType = "" // 未指定 IndicationPriceTypeNoChange IndicationPriceType = "0000" // 事象なし IndicationPriceTypeGeneral IndicationPriceType = "0101" // 一般気配 IndicationPriceTypeSpecific IndicationPriceType = "0102" // 特別気配 IndicationPriceTypeBeforeOpening IndicationPriceType = "0107" // 寄前気配 IndicationPriceTypeBeforeClosing IndicationPriceType = "0108" // 停止前特別気配 IndicationPriceTypeContinuance IndicationPriceType = "0118" // 連続約定気配 IndicationPriceTypeContinuanceBeforeClosing IndicationPriceType = "0119" // 停止前の連続約定気配 IndicationPriceTypeMoving IndicationPriceType = "0120" // 一般気配、買上がり・売下がり中 )
type ListingType ¶
type ListingType string
ListingType - 上場・入札C
const ( ListingTypeUnspecified ListingType = "" // 未指定 ListingTypeUnUsed ListingType = " " // 通常(無) ListingTypeNewest ListingType = "1" // 上場1年未満銘柄 ListingTypeGeneral ListingType = "A" // 一般入札 ListingTypeRight ListingType = "B" // 権利入札 ListingTypeOffer ListingType = "C" // 公募入札 ListingTypeSelling ListingType = "D" // 売出し ListingTypeOpenBuy ListingType = "E" // 公開買付 ListingTypeTransmission ListingType = "F" // 媒介 )
type LoginRequest ¶
LoginRequest - ログインリクエスト
type LoginResponse ¶
type LoginResponse struct { CommonResponse ResultCode string // 結果コード ResultText string // 結果テキスト AccountType AccountType // 譲渡益課税区分 SecondPasswordOmit bool // 暗証番号省略有無C LastLoginDateTime time.Time // 最終ログイン日時 GeneralAccount bool // 総合口座開設区分 SafekeepingAccount bool // 保護預り口座開設区分 TransferAccount bool // 振替決済口座開設区分 ForeignAccount bool // 外国口座開設区分 MRFAccount bool // MRF口座開設区分 StockSpecificAccount SpecificAccountType // 特定口座区分現物 MarginSpecificAccount SpecificAccountType // 特定口座区分信用 InvestmentSpecificAccount SpecificAccountType // 特定口座区分投信 DividendAccount bool // 配当特定口座区分 SpecificAccount bool // 特定管理口座開設区分 MarginAccount bool // 信用取引口座開設区分 FutureOptionAccount bool // 先物OP口座開設区分 MMFAccount bool // MMF口座開設区分 ChinaForeignAccount bool // 中国F口座開設区分 FXAccount bool // 為替保証金口座開設区分 NISAAccount bool // 非課税口座開設区分 UnreadDocument bool // 金商法交付書面未読フラグ ※この項目がtrueならリクエスト用のURLが発行されない RequestURL string // 仮想URL(REQUEST) MasterURL string // 仮想URL(MASTER) PriceURL string // 仮想URL(PRICE) EventURL string // 仮想URL(EVENT) }
LoginResponse - ログインレスポンス
func (*LoginResponse) Session ¶
func (r *LoginResponse) Session() (*Session, error)
Session - ログインレスポンスからセッションを取り出す
type LogoutResponse ¶
type LogoutResponse struct { CommonResponse ResultCode string // 結果コード ResultText string // 結果テキスト }
LogoutResponse - ログアウトレスポンス
type MarginPosition ¶
type MarginPosition struct { WarningCode string // 警告コード WarningText string // 警告テキスト PositionNumber string // 建玉番号 IssueCode string // 銘柄コード Exchange Exchange // 市場 Side Side // 売買区分 ExitTermType ExitTermType // 弁済区分 AccountType AccountType // 譲渡益課税区分 OrderQuantity float64 // 建株数 UnitPrice float64 // 建単価 CurrentPrice float64 // 評価単価 Profit float64 // 評価損益 ProfitRatio float64 // 評価損益率 TotalPrice float64 // 建玉代金 Commission float64 // 建手数料 Interest float64 // 順日歩 Premiums float64 // 逆日歩 RewritingFee float64 // 書換料 ManagementFee float64 // 管理費 LendingFee float64 // 貸株料 OtherFee float64 // その他 ContractDate time.Time // 建日 ExitTerm time.Time // 建玉期日日 OwnedQuantity float64 // 建玉数量 ExitQuantity float64 // 約定返済株数 DeliveryQuantity float64 // 現引現渡株数 HoldQuantity float64 // 注文中数量 ReturnableQuantity float64 // 返済可能数量 PrevClosePrice float64 // 前日終値 PrevCloseRatio float64 // 前日比 PrevClosePercent float64 // 前日比(%) PrevCloseRatioType PrevCloseRatioType // 騰落率Flag }
MarginPosition - 信用建玉
type MarginPositionListRequest ¶
type MarginPositionListRequest struct {
IssueCode string // 銘柄コード
}
MarginPositionListRequest - 信用建玉一覧リクエスト
type MarginPositionListResponse ¶
type MarginPositionListResponse struct { CommonResponse IssueCode string // 銘柄コード ResultCode string // 結果コード ResultText string // 結果テキスト WarningCode string // 警告コード WarningText string // 警告テキスト TotalSellAmount float64 // 売建代金合計 TotalBuyAmount float64 // 買建代金合計 TotalAmount float64 // 総代金合計 TotalSellProfit float64 // 評価損益合計_売建 TotalBuyProfit float64 // 評価損益合計_買建 TotalProfit float64 // 総評価損益合計 SpecificAccountProfit float64 // 特定口座残高評価損益合計 GeneralAccountProfit float64 // 一般口座残高評価損益合計 Positions []MarginPosition // 信用建玉リスト }
MarginPositionListResponse - 信用建玉一覧レスポンス
type MarginType ¶
type MarginType string
const ( MarginTypeUnspecified MarginType = "" // 未指定 MarginTypeMarginTrading MarginType = "1" // 貸借銘柄 MarginTypeStandard MarginType = "2" // 信用制度銘柄 MarginTypeNegotiate MarginType = "3" // 一般信用銘柄 )
type MarginWalletRequest ¶
MarginWalletRequest - 建余力&本日維持率リクエスト
type MarginWalletResponse ¶
type MarginWalletResponse struct { CommonResponse IssueCode string // 銘柄コード Exchange Exchange // 市場 ResultCode string // 結果コード ResultText string // 結果テキスト WarningCode string // 警告コード WarningText string // 警告テキスト UpdateDateTime time.Time // 更新日時 MarginWallet float64 // 信用新規建可能額 DepositRate float64 // 委託保証金率 Shortage bool // 追証フラグ }
MarginWalletResponse - 建余力&本日維持率レスポンス
type MarketPrice ¶
type MarketPrice struct { IssueCode string // 銘柄コード Section string // 所属 CurrentPrice float64 // 現在値 CurrentPriceTime time.Time // 現在値時刻 ChangePriceType ChangePriceType // 現値前値比較 PrevDayRatio float64 // 前日比 PrevDayPercent float64 // 騰落率 OpenPrice float64 // 始値 OpenPriceTime time.Time // 始値時刻 HighPrice float64 // 高値 HighPriceTime time.Time // 高値時刻 LowPrice float64 // 安値 LowPriceTime time.Time // 安値時刻 Volume float64 // 出来高 AskSign IndicationPriceType // 売気配値種類 AskPrice float64 // 売気配値 AskQuantity float64 // 売気配数量 BidSign IndicationPriceType // 買気配値種類 BidPrice float64 // 買気配値 BidQuantity float64 // 買気配数量 ExRightType string // 配当落銘柄区分 DiscontinuityType string // 不連続要因銘柄区分 StopHigh CurrentPriceType // 日通し高値フラグ StopLow CurrentPriceType // 日通し安値フラグ TradingAmount float64 // 売買代金 AskQuantityMarket float64 // 売数量(成行) BidQuantityMarket float64 // 買数量(成行) AskQuantityOver float64 // 売-OVER AskQuantity10 float64 // 売-10-数量 AskPrice10 float64 // 売-10-値段 AskQuantity9 float64 // 売-9-数量 AskPrice9 float64 // 売-9-値段 AskQuantity8 float64 // 売-8-数量 AskPrice8 float64 // 売-8-値段 AskQuantity7 float64 // 売-7-数量 AskPrice7 float64 // 売-7-値段 AskQuantity6 float64 // 売-6-数量 AskPrice6 float64 // 売-6-値段 AskQuantity5 float64 // 売-5-数量 AskPrice5 float64 // 売-5-値段 AskQuantity4 float64 // 売-4-数量 AskPrice4 float64 // 売-4-値段 AskQuantity3 float64 // 売-3-数量 AskPrice3 float64 // 売-3-値段 AskQuantity2 float64 // 売-2-数量 AskPrice2 float64 // 売-2-値段 AskQuantity1 float64 // 売-1-数量 AskPrice1 float64 // 売-1-値段 BidQuantity1 float64 // 買-1-数量 BidPrice1 float64 // 買-1-値段 BidQuantity2 float64 // 買-2-数量 BidPrice2 float64 // 買-2-値段 BidQuantity3 float64 // 買-3-数量 BidPrice3 float64 // 買-3-値段 BidQuantity4 float64 // 買-4-数量 BidPrice4 float64 // 買-4-値段 BidQuantity5 float64 // 買-5-数量 BidPrice5 float64 // 買-5-値段 BidQuantity6 float64 // 買-6-数量 BidPrice6 float64 // 買-6-値段 BidQuantity7 float64 // 買-7-数量 BidPrice7 float64 // 買-7-値段 BidQuantity8 float64 // 買-8-数量 BidPrice8 float64 // 買-8-値段 BidQuantity9 float64 // 買-9-数量 BidPrice9 float64 // 買-9-値段 BidQuantity10 float64 // 買-10-数量 BidPrice10 float64 // 買-10-値段 BidQuantityUnder float64 // 買-UNDER VWAP float64 // VWAP PRP float64 // 前日終値 }
MarketPrice - 時価関連情報
type MarketPriceColumn ¶
type MarketPriceColumn string
MarketPriceColumn - 時価関連情報カラム
const ( MarketPriceColumnSection MarketPriceColumn = "xLISS" // 所属 MarketPriceColumnCurrentPrice MarketPriceColumn = "pDPP" // 現在値 MarketPriceColumnCurrentPriceTime MarketPriceColumn = "tDPP:T" // 現在値時刻 MarketPriceColumnChangePriceType MarketPriceColumn = "pDPG" // 現値前値比較 MarketPriceColumnPrevDayRatio MarketPriceColumn = "pDYWP" // 前日比 MarketPriceColumnPrevDayPercent MarketPriceColumn = "pDYRP" // 騰落率 MarketPriceColumnOpenPrice MarketPriceColumn = "pDOP" // 始値 MarketPriceColumnOpenPriceTime MarketPriceColumn = "tDOP:T" // 始値時刻 MarketPriceColumnHighPrice MarketPriceColumn = "pDHP" // 高値 MarketPriceColumnHighPriceTime MarketPriceColumn = "tDHP:T" // 高値時刻 MarketPriceColumnLowPrice MarketPriceColumn = "pDLP" // 安値 MarketPriceColumnLowPriceTime MarketPriceColumn = "tDLP:T" // 安値時刻 MarketPriceColumnVolume MarketPriceColumn = "pDV" // 出来高 MarketPriceColumnAskSign MarketPriceColumn = "pQAS" // 売気配値種類 MarketPriceColumnAskPrice MarketPriceColumn = "pQAP" // 売気配値 MarketPriceColumnAskQuantity MarketPriceColumn = "pAV" // 売気配数量 MarketPriceColumnBidSign MarketPriceColumn = "pQBS" // 買気配値種類 MarketPriceColumnBidPrice MarketPriceColumn = "pQBP" // 買気配値 MarketPriceColumnBidQuantity MarketPriceColumn = "pBV" // 買気配数量 MarketPriceColumnExRightType MarketPriceColumn = "xDVES" // 配当落銘柄区分 MarketPriceColumnDiscontinuityType MarketPriceColumn = "xDCFS" // 不連続要因銘柄区分 MarketPriceColumnStopHigh MarketPriceColumn = "pDHF" // 日通し高値フラグ MarketPriceColumnStopLow MarketPriceColumn = "pDLF" // 日通し安値フラグ MarketPriceColumnTradingAmount MarketPriceColumn = "pDJ" // 売買代金 MarketPriceColumnAskQuantityMarket MarketPriceColumn = "pAAV" // 売数量(成行) MarketPriceColumnBidQuantityMarket MarketPriceColumn = "pABV" // 買数量(成行) MarketPriceColumnAskQuantityOver MarketPriceColumn = "pQOV" // 売-OVER MarketPriceColumnAskQuantity10 MarketPriceColumn = "pGAV10" // 売-10-数量 MarketPriceColumnAskPrice10 MarketPriceColumn = "pGAP10" // 売-10-値段 MarketPriceColumnAskQuantity9 MarketPriceColumn = "pGAV9" // 売-9-数量 MarketPriceColumnAskPrice9 MarketPriceColumn = "pGAP9" // 売-9-値段 MarketPriceColumnAskQuantity8 MarketPriceColumn = "pGAV8" // 売-8-数量 MarketPriceColumnAskPrice8 MarketPriceColumn = "pGAP8" // 売-8-値段 MarketPriceColumnAskQuantity7 MarketPriceColumn = "pGAV7" // 売-7-数量 MarketPriceColumnAskPrice7 MarketPriceColumn = "pGAP7" // 売-7-値段 MarketPriceColumnAskQuantity6 MarketPriceColumn = "pGAV6" // 売-6-数量 MarketPriceColumnAskPrice6 MarketPriceColumn = "pGAP6" // 売-6-値段 MarketPriceColumnAskQuantity5 MarketPriceColumn = "pGAV5" // 売-5-数量 MarketPriceColumnAskPrice5 MarketPriceColumn = "pGAP5" // 売-5-値段 MarketPriceColumnAskQuantity4 MarketPriceColumn = "pGAV4" // 売-4-数量 MarketPriceColumnAskPrice4 MarketPriceColumn = "pGAP4" // 売-4-値段 MarketPriceColumnAskQuantity3 MarketPriceColumn = "pGAV3" // 売-3-数量 MarketPriceColumnAskPrice3 MarketPriceColumn = "pGAP3" // 売-3-値段 MarketPriceColumnAskQuantity2 MarketPriceColumn = "pGAV2" // 売-2-数量 MarketPriceColumnAskPrice2 MarketPriceColumn = "pGAP2" // 売-2-値段 MarketPriceColumnAskQuantity1 MarketPriceColumn = "pGAV1" // 売-1-数量 MarketPriceColumnAskPrice1 MarketPriceColumn = "pGAP1" // 売-1-値段 MarketPriceColumnBidQuantity1 MarketPriceColumn = "pGBV1" // 買-1-数量 MarketPriceColumnBidPrice1 MarketPriceColumn = "pGBP1" // 買-1-値段 MarketPriceColumnBidQuantity2 MarketPriceColumn = "pGBV2" // 買-2-数量 MarketPriceColumnBidPrice2 MarketPriceColumn = "pGBP2" // 買-2-値段 MarketPriceColumnBidQuantity3 MarketPriceColumn = "pGBV3" // 買-3-数量 MarketPriceColumnBidPrice3 MarketPriceColumn = "pGBP3" // 買-3-値段 MarketPriceColumnBidQuantity4 MarketPriceColumn = "pGBV4" // 買-4-数量 MarketPriceColumnBidPrice4 MarketPriceColumn = "pGBP4" // 買-4-値段 MarketPriceColumnBidQuantity5 MarketPriceColumn = "pGBV5" // 買-5-数量 MarketPriceColumnBidPrice5 MarketPriceColumn = "pGBP5" // 買-5-値段 MarketPriceColumnBidQuantity6 MarketPriceColumn = "pGBV6" // 買-6-数量 MarketPriceColumnBidPrice6 MarketPriceColumn = "pGBP6" // 買-6-値段 MarketPriceColumnBidQuantity7 MarketPriceColumn = "pGBV7" // 買-7-数量 MarketPriceColumnBidPrice7 MarketPriceColumn = "pGBP7" // 買-7-値段 MarketPriceColumnBidQuantity8 MarketPriceColumn = "pGBV8" // 買-8-数量 MarketPriceColumnBidPrice8 MarketPriceColumn = "pGBP8" // 買-8-値段 MarketPriceColumnBidQuantity9 MarketPriceColumn = "pGBV9" // 買-9-数量 MarketPriceColumnBidPrice9 MarketPriceColumn = "pGBP9" // 買-9-値段 MarketPriceColumnBidQuantity10 MarketPriceColumn = "pGBV10" // 買-10-数量 MarketPriceColumnBidPrice10 MarketPriceColumn = "pGBP10" // 買-10-値段 MarketPriceColumnBidQuantityUnder MarketPriceColumn = "pQUV" // 買-UNDER MarketPriceColumnVWAP MarketPriceColumn = "pVWAP" // VWAP MarketPriceColumnPRP MarketPriceColumn = "pPRP" // 前日終値 )
type MarketPriceRequest ¶
type MarketPriceRequest struct { IssueCodes []string // 取得したい銘柄コード Columns []MarketPriceColumn // 取得したい情報 }
MarketPriceRequest - 時価関連情報リクエスト
type MarketPriceResponse ¶
type MarketPriceResponse struct { CommonResponse MarketPrices []MarketPrice // 時価情報 }
MarketPriceResponse - 時価関連情報レスポンス
type MarketPriceStreamResponse ¶ added in v0.0.9
type MarketPriceStreamResponse struct { CommonStreamResponse ColumnNumber int // 行番号 AskQuantityMarket float64 // 売数量(成行) BidQuantityMarket float64 // 買数量(成行) AskQuantity float64 // 売気配数量 BidQuantity float64 // 買気配数量 DiscontinuityType string // 不連続要因銘柄区分 StopHigh CurrentPriceType // 日通し高値フラグ HighPrice float64 // 高値 HighPriceTime time.Time // 高値時刻 TradingAmount float64 // 売買代金 StopLow CurrentPriceType // 日通し安値フラグ LowPrice float64 // 安値 LowPriceTime time.Time // 安値時刻 OpenPrice float64 // 始値 OpenPriceTime time.Time // 始値時刻 ChangePriceType ChangePriceType // 現値前値比較 CurrentPrice float64 // 現在値 CurrentPriceTime time.Time // 現在値時刻 Volume float64 // 出来高 ExRightType string // 配当落銘柄区分 PrevDayPercent float64 // 騰落率 PrevDayRatio float64 // 前日比 AskQuantity10 float64 // 売-10-数量 AskPrice10 float64 // 売-10-値段 AskQuantity9 float64 // 売-9-数量 AskPrice9 float64 // 売-9-値段 AskQuantity8 float64 // 売-8-数量 AskPrice8 float64 // 売-8-値段 AskQuantity7 float64 // 売-7-数量 AskPrice7 float64 // 売-7-値段 AskQuantity6 float64 // 売-6-数量 AskPrice6 float64 // 売-6-値段 AskQuantity5 float64 // 売-5-数量 AskPrice5 float64 // 売-5-値段 AskQuantity4 float64 // 売-4-数量 AskPrice4 float64 // 売-4-値段 AskQuantity3 float64 // 売-3-数量 AskPrice3 float64 // 売-3-値段 AskQuantity2 float64 // 売-2-数量 AskPrice2 float64 // 売-2-値段 AskQuantity1 float64 // 売-1-数量 AskPrice1 float64 // 売-1-値段 BidQuantity1 float64 // 買-1-数量 BidPrice1 float64 // 買-1-値段 BidQuantity2 float64 // 買-2-数量 BidPrice2 float64 // 買-2-値段 BidQuantity3 float64 // 買-3-数量 BidPrice3 float64 // 買-3-値段 BidQuantity4 float64 // 買-4-数量 BidPrice4 float64 // 買-4-値段 BidQuantity5 float64 // 買-5-数量 BidPrice5 float64 // 買-5-値段 BidQuantity6 float64 // 買-6-数量 BidPrice6 float64 // 買-6-値段 BidQuantity7 float64 // 買-7-数量 BidPrice7 float64 // 買-7-値段 BidQuantity8 float64 // 買-8-数量 BidPrice8 float64 // 買-8-値段 BidQuantity9 float64 // 買-9-数量 BidPrice9 float64 // 買-9-値段 BidQuantity10 float64 // 買-10-数量 BidPrice10 float64 // 買-10-値段 Section string // 所属 PRP float64 // 前日終値 AskPrice float64 // 売気配値 AskSign IndicationPriceType // 売気配値種類 BidPrice float64 // 買気配値 BidSign IndicationPriceType // 買気配値種類 AskQuantityOver float64 // 売-OVER BidQuantityUnder float64 // 買-UNDER VWAP float64 // VWAP }
type MessageType ¶
type MessageType string
MessageType - 機能種別
const ( MessageTypeUnspecified MessageType = "" // 未指定 MessageTypeLoginRequest MessageType = "CLMAuthLoginRequest" // ログインリクエスト MessageTypeLoginResponse MessageType = "CLMAuthLoginAck" // ログインレスポンス MessageTypeLogoutRequest MessageType = "CLMAuthLogoutRequest" // ログアウトリクエスト MessageTypeLogoutResponse MessageType = "CLMAuthLogoutAck" // ログアウトレスポンス MessageTypeNewOrder MessageType = "CLMKabuNewOrder" // 新規注文 MessageTypeCorrectOrder MessageType = "CLMKabuCorrectOrder" // 訂正注文 MessageTypeCancelOrder MessageType = "CLMKabuCancelOrder" // 取消注文 MessageTypeStockPositionList MessageType = "CLMGenbutuKabuList" // 現物保有銘柄一覧 MessageTypeMarginPositionList MessageType = "CLMShinyouTategyokuList" // 信用建玉一覧 MessageTypeStockWallet MessageType = "CLMZanKaiKanougaku" // 買余力 MessageTypeMarginWallet MessageType = "CLMZanShinkiKanoIjiritu" // 建余力&本日維持率 MessageTypeStockSellable MessageType = "CLMZanUriKanousuu" // 売却可能数量 MessageTypeOrderList MessageType = "CLMOrderList" // 注文一覧 MessageTypeOrderDetail MessageType = "CLMOrderListDetail" // 注文約定一覧(詳細) MessageTypeSummary MessageType = "CLMZanKaiSummary" // 可能額サマリー MessageTypeSummaryRecord MessageType = "CLMZanKaiKanougakuSuii" // 可能額推移 MessageTypeStockEntryDetail MessageType = "CLMZanKaiGenbutuKaitukeSyousai" // 現物株式買付可能額詳細 MessageTypeMarginEntryDetail MessageType = "CLMZanKaiSinyouSinkidateSyousai" // 信用新規建て可能額詳細 MessageTypeDepositRate MessageType = "CLMZanRealHosyoukinRitu" // リアル保証金率 MessageTypeEventDownload MessageType = "CLMEventDownload" // マスタ情報ダウンロード MessageTypeEventSystemStatus MessageType = "CLMSystemStatus" // システムステータス MessageTypeBusinessDay MessageType = "CLMDateZyouhou" // 日付情報 MessageTypeTickGroup MessageType = "CLMYobine" // 呼値 MessageTypeEventOperationStatus MessageType = "CLMUnyouStatus" // 運用ステータス別状態 MessageTypeEventStockOperationStatus MessageType = "CLMUnyouStatusKabu" // 運用ステータス(株式) MessageTypeEventProductOperationStatus MessageType = "CLMUnyouStatusHasei" // 運用運用ステータス(派生) MessageTypeStockMaster MessageType = "CLMIssueMstKabu" // 株式銘柄マスタ MessageTypeStockExchangeMaster MessageType = "CLMIssueSizyouMstKabu" // 株式銘柄市場マスタ MessageTypeEventStockRegulation MessageType = "CLMIssueSizyouKiseiKabu" // 株式銘柄別・市場別規制 MessageTypeEventFutureMaster MessageType = "CLMIssueMstSak" // 先物銘柄マスタ MessageTypeEventOptionMaster MessageType = "CLMIssueMstOp" // オプション銘柄マスタ MessageTypeEventExchangeRegulation MessageType = "CLMIssueSizyouKiseiHasei" // 派生銘柄別・市場別規制 MessageTypeEventSubstitute MessageType = "CLMDaiyouKakeme" // 代用掛目 MessageTypeEventDepositMaster MessageType = "CLMHosyoukinMst" // 保証金マスタ MessageTypeEventErrorReason MessageType = "CLMOrderErrReason" // 取引所エラー等理由コード MessageTypeEventDownloadComplete MessageType = "CLMEventDownloadComplete" // 初期ダウンロード終了通知 MessageTypeMasterData MessageType = "CLMMfdsGetMasterData" // マスタ情報 MessageTypeMarketPrice MessageType = "CLMMfdsGetMarketPrice" // 時価関連情報 )
type NewOrderRequest ¶
type NewOrderRequest struct { AccountType AccountType // 譲渡益課税区分 DeliveryAccountType DeliveryAccountType // 建玉譲渡益課税区分 IssueCode string // 銘柄コード Exchange Exchange // 市場 Side Side // 売買区分 ExecutionTiming ExecutionTiming // 執行条件 OrderPrice float64 // 注文値段 OrderQuantity float64 // 注文数量 TradeType TradeType // 現金信用区分 ExpireDate time.Time // 注文期日 ExpireDateIsToday bool // 注文期日を当日 StopOrderType StopOrderType // 逆指値注文種別 TriggerPrice float64 // 逆指値条件 StopOrderPrice float64 // 逆指値値段 ExitPositionType ExitPositionType // 建日種類(返済ポジション指定方法) SecondPassword string // 第二パスワード ExitPositions []ExitPosition // 返済リスト }
NewOrderRequest - 新規注文リクエスト
type NewOrderResponse ¶
type NewOrderResponse struct { CommonResponse ResultCode string // 結果コード ResultText string // 結果テキスト WarningCode string // 警告コード WarningText string // 警告テキスト OrderNumber string // 注文番号 ExecutionDate time.Time // 営業日 DeliveryAmount float64 // 注文受渡金額 Commission float64 // 注文手数料 CommissionTax float64 // 注文消費税 Interest float64 // 金利 OrderDateTime time.Time // 注文日時 }
NewOrderResponse - 新規注文レスポンス
type NewsStreamResponse ¶ added in v0.0.6
type NewsStreamResponse struct { CommonStreamResponse Provider string // プロバイダ(情報提供元) EventNo int64 // イベント番号 FirstTime bool // アラートフラグ NewsId string // ニュースID NewsDateTime time.Time // ニュース日時 NumOfCategory int // ニュースカテゴリ数 Categories []string // ニュースカテゴリリスト NumOfGenre int // ニュースジャンル数 Genres []string // ニュースジャンルリスト NumOfIssue int // 関連銘柄コードリスト Issues []string // 関連銘柄コードリスト Title string // ニュースタイトル Content string // ニュース本文 }
type NumberBool ¶
type NumberBool string
NumberBool - 数値表現されているbool
const ( NumberBoolUnspecified NumberBool = "" // 未指定 NumberBoolFalse NumberBool = "0" // false NumberBoolTrue NumberBool = "1" // true )
func (NumberBool) Bool ¶
func (e NumberBool) Bool() bool
type OperationStatusStreamResponse ¶ added in v0.0.6
type OperationStatusStreamResponse struct { CommonStreamResponse Provider string // プロバイダ(情報提供元) EventNo int64 // イベント番号 FirstTime bool // アラートフラグ UpdateDateTime time.Time // 情報更新時間 Exchange Exchange // 市場コード AssetCode string // 原資産コード ProductType string // 商品種別 OperationCategory string // 運用カテゴリー OperationUnit string // 運用ユニット BusinessDayType string // 営業日区分 OperationStatus string // 運用ステータス }
type Order ¶
type Order struct { WarningCode string // 警告コード WarningText string // 警告テキスト OrderNumber string // 注文番号 IssueCode string // 銘柄コード Exchange Exchange // 市場 AccountType AccountType // 譲渡益課税区分 TradeType TradeType // 現金信用区分 ExitTermType ExitTermType // 弁済区分 Side Side // 売買区分 OrderQuantity float64 // 注文株数 CurrentQuantity float64 // 有効株数 Price float64 // 注文単価 ExecutionTiming ExecutionTiming // 執行条件 ExecutionType ExecutionType // 注文値段区分 StopOrderType StopOrderType // 逆指値注文種別 StopTriggerPrice float64 // 逆指値条件 StopOrderExecutionType ExecutionType // 逆指値値段区分 StopOrderPrice float64 // 逆指値値段 TriggerType TriggerType // トリガータイプ ExitPositionType ExitPositionType // 建日種類(返済ポジション指定方法) ContractQuantity float64 // 成立株数 ContractPrice float64 // 成立単価 PartContractType PartContractType // 内出来区分 ExecutionDate time.Time // 執行日 OrderStatus OrderStatus // 状態コード OrderStatusText string // 状態 ContractStatus ContractStatus // 約定ステータス OrderDateTime time.Time // 注文日付 ExpireDate time.Time // 有効期限 CarryOverType CarryOverType // 繰越注文フラグ CorrectCancelType CorrectCancelType // 訂正取消可否フラグ EstimationAmount float64 // 概算代金 }
Order - 注文
type OrderDetailRequest ¶ added in v0.0.3
OrderDetailRequest - 注文約定一覧(詳細)リクエスト
type OrderDetailResponse ¶ added in v0.0.3
type OrderDetailResponse struct { CommonResponse OrderNumber string // 注文番号 ExecutionDate time.Time // 営業日 ResultCode string // 結果コード ResultText string // 結果テキスト WarningCode string // 警告コード WarningText string // 警告テキスト IssueCode string // 銘柄CODE Exchange Exchange // 市場 Side Side // 売買区分 TradeType TradeType // 現金信用区分 ExitTermType ExitTermType // 弁済区分 ExecutionTiming ExecutionTiming // 執行条件 ExecutionType ExecutionType // 注文値段区分 Price float64 // 注文単価 OrderQuantity float64 // 注文株数 CurrentQuantity float64 // 有効株数 OrderStatus OrderStatus // 状態コード OrderStatusText string // 状態 OrderDateTime time.Time // 注文日付 ExpireDate time.Time // 有効期限 Channel Channel // チャネル StockAccountType AccountType // 現物口座区分 MarginAccountType AccountType // 建玉口座区分 StopOrderType StopOrderType // 逆指値注文種別 StopTriggerPrice float64 // 逆指値条件 StopOrderExecutionType ExecutionType // 逆指値値段区分 StopOrderPrice float64 // 逆指値値段 TriggerType TriggerType // トリガータイプ TriggerDateTime time.Time // トリガー日時 DeliveryDate time.Time // 受渡日 ContractPrice float64 // 約定単価 ContractQuantity float64 // 約定株数 TradingAmount float64 // 売買代金 PartContractType PartContractType // 内出来区分 EstimationAmount float64 // 概算代金 Commission float64 // 手数料 CommissionTax float64 // 消費税 ExitPositionType ExitPositionType // 建日種類(返済ポジション指定方法) ExchangeErrorCode string // 市場/取次ErrorCode ExchangeOrderDateTime time.Time // 市場注文受付時刻 Contracts []Contract // 約定失効リスト HoldPositions []HoldPosition // 決済注文建株指定リスト }
OrderDetailResponse - 注文約定一覧(詳細)レスポンス
type OrderInquiryStatus ¶
type OrderInquiryStatus string
OrderInquiryStatus - 注文状態
const ( OrderInquiryStatusUnspecified OrderInquiryStatus = "" // 未指定 OrderInquiryStatusInOrder OrderInquiryStatus = "1" // 未約定・注文中 OrderInquiryStatusDone OrderInquiryStatus = "2" // 全部約定 OrderInquiryStatusPart OrderInquiryStatus = "3" // 部分約定 OrderInquiryStatusEditable OrderInquiryStatus = "4" // 訂正取消可能な注文 OrderInquiryStatusPartInOrder OrderInquiryStatus = "5" // 未約定 + 一部約定 )
type OrderListRequest ¶
type OrderListRequest struct { IssueCode string // 銘柄コード ExecutionDate time.Time // 注文執行予定日 OrderInquiryStatus OrderInquiryStatus // 注文照会状態 }
OrderListRequest - 注文一覧リクエスト
type OrderListResponse ¶
type OrderListResponse struct { CommonResponse IssueCode string // 銘柄コード ExecutionDate time.Time // 注文執行予定日 OrderInquiryStatus OrderInquiryStatus // 注文照会状態 ResultCode string // 結果コード ResultText string // 結果テキスト WarningCode string // 警告コード WarningText string // 警告テキスト Orders []Order // 注文リスト }
OrderListResponse - 注文一覧レスポンス
type OrderStatus ¶
type OrderStatus string
OrderStatus - 状態コード
const ( OrderStatusUnspecified OrderStatus = "" // 未指定 OrderStatusReceived OrderStatus = "0" // 受付未済 OrderStatusInOrder OrderStatus = "1" // 未約定 OrderStatusError OrderStatus = "2" // 受付エラー OrderStatusInCorrect OrderStatus = "3" // 訂正中 OrderStatusCorrected OrderStatus = "4" // 訂正完了 OrderStatusCorrectFailed OrderStatus = "5" // 訂正失敗 OrderStatusInCancel OrderStatus = "6" // 取消中 OrderStatusCanceled OrderStatus = "7" // 取消完了 OrderStatusCancelFailed OrderStatus = "8" // 取消失敗 OrderStatusPart OrderStatus = "9" // 一部約定 OrderStatusDone OrderStatus = "10" // 全部約定 OrderStatusPartExpired OrderStatus = "11" // 一部失効 OrderStatusExpired OrderStatus = "12" // 全部失効 OrderStatusWait OrderStatus = "13" // 発注待ち OrderStatusInvalid OrderStatus = "14" // 無効 OrderStatusTrigger OrderStatus = "15" // 切替注文・逆指注文(切替中) OrderStatusTriggered OrderStatus = "16" // 切替完了・逆指注文(未約定) OrderStatusTriggerFailed OrderStatus = "17" // 切替失敗・逆指注文(失敗) OrderStatusCarryOverFailed OrderStatus = "19" // 繰越失効 OrderStatusPartIncident OrderStatus = "20" // 一部障害処理 OrderStatusIncident OrderStatus = "21" // 障害処理 OrderStatusInOrderStop OrderStatus = "50" // 逆指値発注中 )
type PartContractType ¶
type PartContractType string
PartContractType - 内出来区分
const ( PartContractTypeUnspecified PartContractType = "" // 未指定 PartContractTypeUnused PartContractType = " " // 未使用 PartContractTypePart PartContractType = "2" // 分割約定 )
type PrevCloseRatioType ¶
type PrevCloseRatioType string
PrevCloseRatioType - 騰落率フラグ
const ( PrevCloseRatioTypeUnspecified PrevCloseRatioType = "" // 未指定 PrevCloseRatioTypeOver5 PrevCloseRatioType = "01" // +5.01%以上 PrevCloseRatioTypeOver3 PrevCloseRatioType = "02" // +3.01%以上 PrevCloseRatioTypeOver2 PrevCloseRatioType = "03" // +2.01%以上 PrevCloseRatioTypeOver1 PrevCloseRatioType = "04" // +1.01%以上 PrevCloseRatioTypeOver0 PrevCloseRatioType = "05" // +0.01%以上 PrevCloseRatioTypeKeep PrevCloseRatioType = "06" // 変化なし PrevCloseRatioTypeUnder0 PrevCloseRatioType = "07" // -0.01%以上 PrevCloseRatioTypeUnder1 PrevCloseRatioType = "08" // -1.01%以上 PrevCloseRatioTypeUnder2 PrevCloseRatioType = "09" // -2.01%以上 PrevCloseRatioTypeUnder3 PrevCloseRatioType = "10" // -3.01%以上 PrevCloseRatioTypeUnder5 PrevCloseRatioType = "11" // -5.01%以上 )
type ProductType ¶ added in v0.0.6
type ProductType string
ProductType - 商品種別
const ( ProductTypeUnspecified ProductType = "" // 未指定 ProductTypeStock ProductType = "1" // 株式 ProductTypeFuture ProductType = "3" // 先物 ProductTypeOption ProductType = "4" // オプション )
type RequestTime ¶
func (RequestTime) MarshalJSON ¶
func (t RequestTime) MarshalJSON() ([]byte, error)
func (*RequestTime) UnmarshalJSON ¶
func (t *RequestTime) UnmarshalJSON(b []byte) error
type ResponseFormat ¶
type ResponseFormat int
ResponseFormat - 応答データフォーマット指定
const ( ResponseFormatUnspecified ResponseFormat = 0 // 未指定・標準 ResponseFormatReadable ResponseFormat = 1 // json文字列をタブや改行で成形された読みやすい形式 ResponseFormatWrapped ResponseFormat = 2 // {}の前後にのみ改行 ResponseFormatWordKey ResponseFormat = 4 // 引数項目番号ではなく引数項目での応答 )
type Session ¶
type Session struct { RequestURL string MasterURL string PriceURL string EventURL string // contains filtered or unexported fields }
Session - リクエストセッション
type SettlementType ¶
type SettlementType string
SettlementType - 決算C
const ( SettlementTypeUnspecified SettlementType = "" // 未指定 SettlementTypeCapitalIncrease SettlementType = "01" // 有償割当増資 SettlementTypeSplit SettlementType = "04" // 株式分割 SettlementTypeAssignment SettlementType = "05" // 無償割当 )
type SpecificAccountType ¶
type SpecificAccountType string
SpecificAccountType - 特定口座区分
const ( SpecificAccountTypeUnspecified SpecificAccountType = "" // 未指定 SpecificAccountTypeGeneral SpecificAccountType = "0" // 一般 SpecificAccountTypeNothing SpecificAccountType = "1" // 特定源泉徴収なし SpecificAccountTypeWithholding SpecificAccountType = "2" // 特定源泉徴収あり )
type StockExchangeMaster ¶
type StockExchangeMaster struct { IssueCode string // 銘柄コード Exchange Exchange // 上場市場 StockSystemType string // システムC UnderLimitPrice float64 // 値幅下限 UpperLimitPrice float64 // 値幅上限 SymbolCategory string // 銘柄区分C LimitPriceExchange Exchange // 値幅市場C MarginType MarginType // 信用C ListingDate time.Time // 新規上場日 LimitPriceDate time.Time // 値幅期限日 LimitPriceCategory string // 値幅規制C LimitPriceValue float64 // 値幅規制値 ConfirmLimitPrice bool // 値幅チェック可否C Section string // 銘柄部別C PrevClosePrice float64 // 前日終値 CalculateLimitPriceExchange Exchange // 値幅算出市場C Regulation1 string // 銘柄規制1C Regulation2 string // 銘柄規制2C SectionType string // 上場区分 DelistingDate time.Time // 上場廃止日 TradingUnit float64 // 売買単位 NextTradingUnit float64 // 売買単位(翌営業日) TickGroupType TickGroupType // 呼値の単位番号 NextTickGroupType TickGroupType // 呼値の単位番号(翌営業日) InformationSource string // 情報系ソース InformationCode string // 情報系コード OfferPrice float64 // 公募価格 CreateDateTime time.Time // 作成日時 UpdateDateTime time.Time // 更新日時 UpdateNumber string // 更新通番 }
StockExchangeMaster - 株式銘柄市場マスタ
type StockExchangeMasterColumn ¶
type StockExchangeMasterColumn string
StockExchangeMasterColumn - 株式銘柄市場マスタカラム
const ( StockExchangeMasterColumnIssueCode StockExchangeMasterColumn = "sIssueCode" // 銘柄コード StockExchangeMasterColumnExchange StockExchangeMasterColumn = "sZyouzyouSizyou" // 上場市場 StockExchangeMasterColumnStockSystemType StockExchangeMasterColumn = "sSystemC" // システムC StockExchangeMasterColumnUnderLimitPrice StockExchangeMasterColumn = "sNehabaMin" // 値幅下限 StockExchangeMasterColumnUpperLimitPrice StockExchangeMasterColumn = "sNehabaMax" // 値幅上限 StockExchangeMasterColumnSymbolCategory StockExchangeMasterColumn = "sIssueKubunC" // 銘柄区分C StockExchangeMasterColumnLimitPriceExchange StockExchangeMasterColumn = "sNehabaSizyouC" // 値幅市場C StockExchangeMasterColumnMarginType StockExchangeMasterColumn = "sSinyouC" // 信用C StockExchangeMasterColumnListingDate StockExchangeMasterColumn = "sSinkiZyouzyouDay" // 新規上場日 StockExchangeMasterColumnLimitPriceDate StockExchangeMasterColumn = "sNehabaKigenDay" // 値幅期限日 StockExchangeMasterColumnLimitPriceCategory StockExchangeMasterColumn = "sNehabaKiseiC" // 値幅規制C StockExchangeMasterColumnLimitPriceValue StockExchangeMasterColumn = "sNehabaKiseiTi" // 値幅規制値 StockExchangeMasterColumnConfirmLimitPrice StockExchangeMasterColumn = "sNehabaCheckKahiC" // 値幅チェック可否C StockExchangeMasterColumnSection StockExchangeMasterColumn = "sIssueBubetuC" // 銘柄部別C StockExchangeMasterColumnPrevClosePrice StockExchangeMasterColumn = "sZenzituOwarine" // 前日終値 StockExchangeMasterColumnCalculateLimitPriceExchange StockExchangeMasterColumn = "sNehabaSansyutuSizyouC" // 値幅算出市場C StockExchangeMasterColumnRegulation1 StockExchangeMasterColumn = "sIssueKisei1C" // 銘柄規制1C StockExchangeMasterColumnRegulation2 StockExchangeMasterColumn = "sIssueKisei2C" // 銘柄規制2C StockExchangeMasterColumnSectionType StockExchangeMasterColumn = "sZyouzyouKubun" // 上場区分 StockExchangeMasterColumnDelistingDate StockExchangeMasterColumn = "sZyouzyouHaisiDay" // 上場廃止日 StockExchangeMasterColumnTradingUnit StockExchangeMasterColumn = "sSizyoubetuBaibaiTani" // 売買単位 StockExchangeMasterColumnNextTradingUnit StockExchangeMasterColumn = "sSizyoubetuBaibaiTaniYoku" // 売買単位(翌営業日) StockExchangeMasterColumnTickGroupType StockExchangeMasterColumn = "sYobineTaniNumber" // 呼値の単位番号 StockExchangeMasterColumnNextTickGroupType StockExchangeMasterColumn = "sYobineTaniNumberYoku" // 呼値の単位番号(翌営業日) StockExchangeMasterColumnInformationSource StockExchangeMasterColumn = "sZyouhouSource" // 情報系ソース StockExchangeMasterColumnInformationCode StockExchangeMasterColumn = "sZyouhouCode" // 情報系コード StockExchangeMasterColumnOfferPrice StockExchangeMasterColumn = "sKouboPrice" // 公募価格 StockExchangeMasterColumnCreateDateTime StockExchangeMasterColumn = "sCreateDate" // 作成日時 StockExchangeMasterColumnUpdateDateTime StockExchangeMasterColumn = "sUpdateDate" // 更新日時 StockExchangeMasterColumnUpdateNumber StockExchangeMasterColumn = "sUpdateNumber" // 更新通番 )
type StockExchangeMasterRequest ¶
type StockExchangeMasterRequest struct {
Columns []StockExchangeMasterColumn // 取得したい情報
}
StockExchangeMasterRequest - 株式銘柄市場マスタリクエスト
type StockExchangeMasterResponse ¶
type StockExchangeMasterResponse struct { CommonResponse StockExchangeMasters []StockExchangeMaster // 株式銘柄市場マスタ }
StockExchangeMasterResponse - 株式銘柄市場マスタレスポンス
type StockMaster ¶
type StockMaster struct { IssueCode string `json:"sIssueCode"` // 銘柄コード Name string `json:"sIssueName"` // 銘柄名 ShortName string `json:"sIssueNameRyaku"` // 銘柄名略称 Kana string `json:"sIssueNameKana"` // 銘柄名(カナ) Alphabet string `json:"sIssueNameEizi"` // 銘柄名(英語表記) SpecificTarget bool `json:"sTokuteiF"` // 特定口座対象C TaxFree TaxFree `json:"sHikazeiC"` // 非課税対象C ExRight ExRightType `json:"sKenriotiFlag"` // 権利落ちフラグ LastRightDay time.Time `json:"sKenritukiSaisyuDay"` // 権利付最終日 ListingType ListingType `json:"sZyouzyouNyusatuC"` // 上場・入札C ReleaseTradingDate time.Time `json:"sNyusatuKaizyoDay"` // 入札解除日 TradingDate time.Time `json:"sNyusatuDay"` // 入札日 TradingUnit float64 `json:"sBaibaiTani,string"` // 売買単位 NextTradingUnit float64 `json:"sBaibaiTaniYoku,string"` // 売買単位(翌営業日) StopTradingType StopTradingType `json:"sBaibaiTeisiC"` // 売買停止C StartPublicationDate time.Time `json:"sHakkouKaisiDay"` // 発行開始日 LastPublicationDate time.Time `json:"sHakkouSaisyuDay"` // 発行最終日 SettlementType SettlementType `json:"sKessanC"` // 決算C SettlementDate time.Time `json:"sKessanDay"` // 決算日 ListingDate time.Time `json:"sZyouzyouOutouDay"` // 上場応答日 ExpireDate2Type string `json:"sNiruiKizituC"` // 二類期日C LargeUnit float64 `json:"sOogutiKabusu,string"` // 大口株数 LargeAmount float64 `json:"sOogutiKingmaker,string"` // 大口金額 OutputTicketType string `json:"sBadenpyouOutputYNC"` // 場伝票出力有無C DepositAmount float64 `json:"sHosyoukinDaiyouKakeme,string"` // 保証金代用掛目 DepositValuation float64 `json:"sDaiyouHyoukaTanka,string"` // 代用証券評価単価 OrganizationType string `json:"sKikoSankaC"` // 機構参加C ProvisionalType string `json:"sKarikessaiC"` // 仮決済C PrimaryExchange Exchange `json:"sYusenSizyou"` // 優先市場 IndefinitePeriodType string `json:"sMukigenC"` // 無期限対象C IndustryCode string `json:"sGyousyuCode"` // 業種コード IndustryName string `json:"sGyousyuName"` // 業種コード名 SORTargetType string `json:"sSorC"` // SOR対象銘柄C CreateDateTime time.Time `json:"sCreateDate"` // 作成日時 UpdateDateTime time.Time `json:"sUpdateDate"` // 更新日時 UpdateNumber string `json:"sUpdateNumber"` // 更新通番 }
StockMaster - 株式銘柄
type StockMasterColumn ¶
type StockMasterColumn string
StockMasterColumn - 株式銘柄マスタカラム
const ( StockMasterColumnIssueCode StockMasterColumn = "sIssueCode" // 銘柄コード StockMasterColumnName StockMasterColumn = "sIssueName" // 銘柄名 StockMasterColumnShortName StockMasterColumn = "sIssueNameRyaku" // 銘柄名略称 StockMasterColumnKana StockMasterColumn = "sIssueNameKana" // 銘柄名(カナ) StockMasterColumnAlphabet StockMasterColumn = "sIssueNameEizi" // 銘柄名(英語表記) StockMasterColumnSpecificTarget StockMasterColumn = "sTokuteiF" // 特定口座対象C StockMasterColumnTaxFree StockMasterColumn = "sHikazeiC" // 非課税対象C StockMasterColumnExRight StockMasterColumn = "sKenriotiFlag" // 権利落ちフラグ StockMasterColumnLastRightDay StockMasterColumn = "sKenritukiSaisyuDay" // 権利付最終日 StockMasterColumnListingType StockMasterColumn = "sZyouzyouNyusatuC" // 上場・入札C StockMasterColumnReleaseTradingDate StockMasterColumn = "sNyusatuKaizyoDay" // 入札解除日 StockMasterColumnTradingDate StockMasterColumn = "sNyusatuDay" // 入札日 StockMasterColumnTradingUnit StockMasterColumn = "sBaibaiTani" // 売買単位 StockMasterColumnNextTradingUnit StockMasterColumn = "sBaibaiTaniYoku" // 売買単位(翌営業日) StockMasterColumnStopTradingType StockMasterColumn = "sBaibaiTeisiC" // 売買停止C StockMasterColumnStartPublicationDate StockMasterColumn = "sHakkouKaisiDay" // 発行開始日 StockMasterColumnLastPublicationDate StockMasterColumn = "sHakkouSaisyuDay" // 発行最終日 StockMasterColumnSettlementType StockMasterColumn = "sKessanC" // 決算C StockMasterColumnSettlementDate StockMasterColumn = "sKessanDay" // 決算日 StockMasterColumnListingDate StockMasterColumn = "sZyouzyouOutouDay" // 上場応答日 StockMasterColumnExpireDate2Type StockMasterColumn = "sNiruiKizituC" // 二類期日C StockMasterColumnLargeUnit StockMasterColumn = "sOogutiKabusu" // 大口株数 StockMasterColumnLargeAmount StockMasterColumn = "sOogutiKingmaker" // 大口金額 StockMasterColumnOutputTicketType StockMasterColumn = "sBadenpyouOutputYNC" // 場伝票出力有無C StockMasterColumnDepositAmount StockMasterColumn = "sHosyoukinDaiyouKakeme" // 保証金代用掛目 StockMasterColumnDepositValuation StockMasterColumn = "sDaiyouHyoukaTanka" // 代用証券評価単価 StockMasterColumnOrganizationType StockMasterColumn = "sKikoSankaC" // 機構参加C StockMasterColumnProvisionalType StockMasterColumn = "sKarikessaiC" // 仮決済C StockMasterColumnPrimaryExchange StockMasterColumn = "sYusenSizyou" // 優先市場 StockMasterColumnIndefinitePeriodType StockMasterColumn = "sMukigenC" // 無期限対象C StockMasterColumnIndustryCode StockMasterColumn = "sGyousyuCode" // 業種コード StockMasterColumnIndustryName StockMasterColumn = "sGyousyuName" // 業種コード名 StockMasterColumnSORTargetType StockMasterColumn = "sSorC" // SOR対象銘柄C StockMasterColumnCreateDateTime StockMasterColumn = "sCreateDate" // 作成日時 StockMasterColumnUpdateDateTime StockMasterColumn = "sUpdateDate" // 更新日時 StockMasterColumnUpdateNumber StockMasterColumn = "sUpdateNumber" // 更新通番 )
type StockMasterRequest ¶
type StockMasterRequest struct {
Columns []StockMasterColumn // 取得したい情報
}
StockMasterRequest - 株式銘柄マスタリクエスト
type StockMasterResponse ¶
type StockMasterResponse struct { CommonResponse StockMasters []StockMaster // 株式銘柄マスタ }
StockMasterResponse - 株式銘柄マスタレスポンス
type StockPosition ¶
type StockPosition struct { WarningCode string // 警告コード WarningText string // 警告テキスト IssueCode string // 銘柄コード AccountType AccountType // 口座 OwnedQuantity float64 // 残高株数 UnHoldQuantity float64 // 売付可能株数 UnitValuation float64 // 評価単価 BookValuation float64 // 概算簿価単価 TotalValuation float64 // 評価金額 Profit float64 // 評価損益 ProfitRatio float64 // 評価損益率 PrevClosePrice float64 // 前日終値 PrevCloseRatio float64 // 前日比 PrevClosePercent float64 // 前日比(%) PrevCloseRatioType PrevCloseRatioType // 騰落率Flag MarginBalance float64 // 証金貸株残 }
StockPosition - 現物株リスト
type StockPositionListRequest ¶
type StockPositionListRequest struct {
IssueCode string // 銘柄コード
}
StockPositionListRequest - 現物保有銘柄一覧リクエスト
type StockPositionListResponse ¶
type StockPositionListResponse struct { CommonResponse IssueCode string // 銘柄コード ResultCode string // 結果コード ResultText string // 結果テキスト WarningCode string // 警告コード WarningText string // 警告テキスト SpecificAmount float64 // 概算評価額合計(特定口座残高) GeneralAmount float64 // 概算評価額合計(一般口座残高) NisaAmount float64 // 概算評価額合計(NISA口座残高) GrowthAmount float64 // 概算評価額合計(N成長口座残高) TotalAmount float64 // 残高合計 概算評価額合計 SpecificProfit float64 // 概算評価損益合計(特定口座残高) GeneralProfit float64 // 概算評価損益合計(一般口座残高) NisaProfit float64 // 概算評価損益合計(NISA口座残高) GrowthProfit float64 // 概算評価損益合計(N成長口座残高) TotalProfit float64 // 概算評価損益合計(残高合計) Positions []StockPosition // 現物株リスト }
StockPositionListResponse - 現物保有銘柄一覧レスポンス
type StockSellableRequest ¶
type StockSellableRequest struct {
IssueCode string // 銘柄コード
}
StockSellableRequest - 売却可能数量リクエスト
type StockSellableResponse ¶
type StockSellableResponse struct { CommonResponse IssueCode string // 銘柄コード ResultCode string // 結果コード ResultText string // 結果テキスト WarningCode string // 警告コード WarningText string // 警告テキスト UpdateDateTime time.Time // 更新日時 GeneralQuantity float64 // 売付可能株数(一般) SpecificQuantity float64 // 売付可能株数(特定) NisaQuantity float64 // 売付可能株数(NISA) }
StockSellableResponse - 売却可能数量レスポンス
type StockWalletRequest ¶
StockWalletRequest - 買余力リクエスト
type StockWalletResponse ¶
type StockWalletResponse struct { CommonResponse IssueCode string // 銘柄コード Exchange Exchange // 市場 ResultCode string // 結果コード ResultText string // 結果テキスト WarningCode string // 警告コード WarningText string // 警告テキスト UpdateDateTime time.Time // 更新日時 StockWallet float64 // 株式現物買付可能額 NisaWallet float64 // NISA口座買付可能額 Shortage bool // 不足金発生フラグ }
StockWalletResponse - 買余力レスポンス
type StopOrderType ¶
type StopOrderType string
StopOrderType - 逆指値注文種別
const ( StopOrderTypeUnspecified StopOrderType = "" // 未指定 StopOrderTypeNormal StopOrderType = "0" // 通常 StopOrderTypeStop StopOrderType = "1" // 逆指値 StopOrderTypeOCO StopOrderType = "2" // 通常 + 逆指値 )
type StopTradingType ¶
type StopTradingType string
StopTradingType - 売買停止C
const ( StopTradingTypeUnspecified StopTradingType = "" // 未指定 StopTradingTypeUnUsed StopTradingType = " " // 通常(無) StopTradingTypeRelease StopTradingType = "0" // 解除 StopTradingTypeStopping StopTradingType = "9" // 停止中 )
type StreamOrderStatus ¶ added in v0.0.6
type StreamOrderStatus string
StreamOrderStatus - イベント通知注文ステータス
const ( StreamOrderStatusUnspecified StreamOrderStatus = "" // 未指定 StreamOrderStatusNew StreamOrderStatus = "0" // 受付未済 StreamOrderStatusReceived StreamOrderStatus = "1" // 受付済 StreamOrderStatusError StreamOrderStatus = "2" // 受付エラー StreamOrderStatusPartExpired StreamOrderStatus = "3" // 一部失効 StreamOrderStatusExpired StreamOrderStatus = "4" // 全部失効 StreamOrderStatusCarryOverExpired StreamOrderStatus = "5" // 繰越失効 )
type StreamOrderType ¶ added in v0.0.6
type StreamOrderType string
StreamOrderType - 通知種別
const ( StreamOrderTypeUnspecified StreamOrderType = "" // 未指定 StreamOrderTypeReceiveOrder StreamOrderType = "1" // 注文受付 StreamOrderTypeReceiveCorrect StreamOrderType = "2" // 訂正受付 StreamOrderTypeReceiveCancel StreamOrderType = "3" // 取消受付 StreamOrderTypeReceiveError StreamOrderType = "4" // 注文受付エラー StreamOrderTypeReceiveCorrectError StreamOrderType = "5" // 訂正受付エラー StreamOrderTypeReceiveCancelError StreamOrderType = "6" // 取消受付エラー StreamOrderTypeOrderError StreamOrderType = "7" // 新規登録エラー StreamOrderTypeCorrectError StreamOrderType = "8" // 訂正登録エラー StreamOrderTypeCancelError StreamOrderType = "9" // 取消登録エラー StreamOrderTypeCorrected StreamOrderType = "10" // 訂正完了 StreamOrderTypeCanceled StreamOrderType = "11" // 取消完了 StreamOrderTypeContract StreamOrderType = "12" // 約定成立 StreamOrderTypeExpire StreamOrderType = "13" // 失効 StreamOrderTypeExpireContinue StreamOrderType = "14" // 失効(連続注文) StreamOrderTypeCancelContract StreamOrderType = "15" // 約定取消 StreamOrderTypeCarryOver StreamOrderType = "16" // 注文繰越 StreamOrderTypeReceived StreamOrderType = "100" // 注文状態変更 )
type StreamRequest ¶ added in v0.0.6
type StreamRequest struct { ColumnNumber []int // 株価ボード専用 行番号 IssueCodes []string // 株価ボード専用 銘柄コード MarketCodes []Exchange // 株価ボード専用 市場コード StartStreamNumber int64 // 配信開始イベント通知番号 StreamEventTypes []EventType // 通知種別 }
func (*StreamRequest) Query ¶ added in v0.0.6
func (r *StreamRequest) Query() []byte
type StreamResponse ¶ added in v0.0.6
type SystemStatus ¶
type SystemStatus string
SystemStatus - システム状態
const ( SystemStatusUnspecified SystemStatus = "" // 未指定 SystemStatusClosing SystemStatus = "0" // 閉局 SystemStatusOpening SystemStatus = "1" // 開局 SystemStatusPause SystemStatus = "2" // 一時停止 )
type SystemStatusStreamResponse ¶ added in v0.0.6
type SystemStatusStreamResponse struct { CommonStreamResponse Provider string // プロバイダ(情報提供元) EventNo int64 // イベント番号 FirstTime bool // アラートフラグ UpdateDateTime time.Time // 情報更新時間 ApprovalLogin ApprovalLogin // ログイン許可区分 SystemStatus SystemStatus // システムステータス }
type TickGroup ¶ added in v0.0.3
type TickGroup struct { Number int // 番号 BasePrice float64 // 基準値段 UnitPrice float64 // 呼値値段 Digits float64 // 小数点桁数 }
TickGroup - 呼値グループ
type TickGroupResponse ¶
type TickGroupResponse struct { CommonResponse TickGroupType TickGroupType // 呼値の単位番号 StartDate time.Time // 適用日 TickGroups [20]TickGroup // 呼値グループリスト CreateDate time.Time // 作成日時 UpdateDate time.Time // 更新日時 }
TickGroupResponse - 呼値レスポンス
type TickGroupType ¶
type TickGroupType string
TickGroupType - 呼値の単位番号
const ( TickGroupTypeUnspecified TickGroupType = "" // 未指定 TickGroupTypeStock1 TickGroupType = "101" // 株式1 TickGroupTypeStock2 TickGroupType = "102" // 株式2 TickGroupTypeStock3 TickGroupType = "103" // 株式3 TickGroupTypeBond1 TickGroupType = "201" // 債券1 TickGroupTypeBond2 TickGroupType = "202" // 債券2 TickGroupTypeNK225 TickGroupType = "318" // 日経225先物 TickGroupTypeNK225Mini TickGroupType = "319" // 日経225mini先物 TickGroupTypeNK225OP TickGroupType = "418" // 日経225OP )
type TradeRestriction ¶
type TradeRestriction string
TradeRestriction - 取引禁止
const ( TradeRestrictionUnspecified TradeRestriction = "" // 未指定 TradeRestrictionNormal TradeRestriction = "0" // 通常(無) TradeRestrictionTrading TradeRestriction = "1" // 取引禁止 TradeRestrictionMarket TradeRestriction = "2" // 成行禁止 TradeRestrictionFraction TradeRestriction = "3" // 端株禁止 )
type TradeType ¶
type TradeType string
TradeType - 現金信用区分
const ( TradeTypeUnspecified TradeType = "" // 未指定 TradeTypeStock TradeType = "0" // 現物 TradeTypeStandardEntry TradeType = "2" // 新規(制度信用6ヶ月) TradeTypeStandardExit TradeType = "4" // 返済(制度信用6ヶ月) TradeTypeNegotiateEntry TradeType = "6" // 新規(一般信用6ヶ月) TradeTypeNegotiateExit TradeType = "8" // 返済(一般信用6ヶ月) )
type TriggerType ¶
type TriggerType string
TriggerType - トリガータイプ
const ( TriggerTypeUnspecified TriggerType = "" // 未指定 TriggerTypeNoFired TriggerType = "0" // 未発火 TriggerTypeAuto TriggerType = "1" // 自動 TriggerTypeManualOrder TriggerType = "2" // 手動発注 TriggerTypeManualExpired TriggerType = "3" // 手動失効 )
Source Files ¶
- business_day.go
- cancel_order.go
- clock.go
- correct_order.go
- enums.go
- errors.go
- login.go
- logout.go
- margin_position_list.go
- margin_wallet.go
- market_price.go
- new_order.go
- order_detail.go
- order_list.go
- stock_exchange_master.go
- stock_master.go
- stock_position_list.go
- stock_sellable.go
- stock_wallet.go
- stream.go
- tachibana.go
- tick_group.go
- time.go
- values.go