Documentation ¶
Overview ¶
Package autogen provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.2 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewApisoftlimitGetRequest(server string, params *ApisoftlimitGetParams) (*http.Request, error)
- func NewBoardGetRequest(server string, symbol string, params *BoardGetParams) (*http.Request, error)
- func NewCancelorderPutRequest(server string, params *CancelorderPutParams, ...) (*http.Request, error)
- func NewCancelorderPutRequestWithBody(server string, params *CancelorderPutParams, contentType string, ...) (*http.Request, error)
- func NewExchangeGetRequest(server string, symbol ExchangeGetParamsSymbol, params *ExchangeGetParams) (*http.Request, error)
- func NewGetWalletCashSymbolRequest(server string, symbol string, params *GetWalletCashSymbolParams) (*http.Request, error)
- func NewGetWalletFutureSymbolRequest(server string, symbol string, params *GetWalletFutureSymbolParams) (*http.Request, error)
- func NewGetWalletMarginSymbolRequest(server string, symbol string, params *GetWalletMarginSymbolParams) (*http.Request, error)
- func NewGetWalletOptionSymbolRequest(server string, symbol string, params *GetWalletOptionSymbolParams) (*http.Request, error)
- func NewMarginpremiumGetRequest(server string, symbol string, params *MarginpremiumGetParams) (*http.Request, error)
- func NewOrdersGetRequest(server string, params *OrdersGetParams) (*http.Request, error)
- func NewPositionsGetRequest(server string, params *PositionsGetParams) (*http.Request, error)
- func NewPrimaryExchangeGetRequest(server string, symbol string, params *PrimaryExchangeGetParams) (*http.Request, error)
- func NewRankingGetRequest(server string, params *RankingGetParams) (*http.Request, error)
- func NewRegisterPutRequest(server string, params *RegisterPutParams, body RegisterPutJSONRequestBody) (*http.Request, error)
- func NewRegisterPutRequestWithBody(server string, params *RegisterPutParams, contentType string, body io.Reader) (*http.Request, error)
- func NewRegulationsGetRequest(server string, symbol string, params *RegulationsGetParams) (*http.Request, error)
- func NewSendoderFuturePostRequest(server string, params *SendoderFuturePostParams, ...) (*http.Request, error)
- func NewSendoderFuturePostRequestWithBody(server string, params *SendoderFuturePostParams, contentType string, ...) (*http.Request, error)
- func NewSendorderOptionPostRequest(server string, params *SendorderOptionPostParams, ...) (*http.Request, error)
- func NewSendorderOptionPostRequestWithBody(server string, params *SendorderOptionPostParams, contentType string, ...) (*http.Request, error)
- func NewSendorderPostRequest(server string, params *SendorderPostParams, body SendorderPostJSONRequestBody) (*http.Request, error)
- func NewSendorderPostRequestWithBody(server string, params *SendorderPostParams, contentType string, body io.Reader) (*http.Request, error)
- func NewSymbolGetRequest(server string, symbol string, params *SymbolGetParams) (*http.Request, error)
- func NewSymbolnameFutureGetRequest(server string, params *SymbolnameFutureGetParams) (*http.Request, error)
- func NewSymbolnameOptionGetRequest(server string, params *SymbolnameOptionGetParams) (*http.Request, error)
- func NewTokenPostRequest(server string, body TokenPostJSONRequestBody) (*http.Request, error)
- func NewTokenPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUnregisterAllPutRequest(server string, params *UnregisterAllPutParams) (*http.Request, error)
- func NewUnregisterPutRequest(server string, params *UnregisterPutParams, body UnregisterPutJSONRequestBody) (*http.Request, error)
- func NewUnregisterPutRequestWithBody(server string, params *UnregisterPutParams, contentType string, body io.Reader) (*http.Request, error)
- func NewWalletCashGetRequest(server string, params *WalletCashGetParams) (*http.Request, error)
- func NewWalletFutureGetRequest(server string, params *WalletFutureGetParams) (*http.Request, error)
- func NewWalletMarginGetRequest(server string, params *WalletMarginGetParams) (*http.Request, error)
- func NewWalletOptionGetRequest(server string, params *WalletOptionGetParams) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ApiSoftLimitResponse
- type ApisoftlimitGetParams
- type ApisoftlimitGetResponse
- type BoardGetParams
- type BoardGetResponse
- type BoardSuccess
- type CancelorderPutJSONRequestBody
- type CancelorderPutParams
- type CancelorderPutResponse
- type Client
- func (c *Client) ApisoftlimitGet(ctx context.Context, params *ApisoftlimitGetParams, ...) (*http.Response, error)
- func (c *Client) BoardGet(ctx context.Context, symbol string, params *BoardGetParams, ...) (*http.Response, error)
- func (c *Client) CancelorderPut(ctx context.Context, params *CancelorderPutParams, ...) (*http.Response, error)
- func (c *Client) CancelorderPutWithBody(ctx context.Context, params *CancelorderPutParams, contentType string, ...) (*http.Response, error)
- func (c *Client) ExchangeGet(ctx context.Context, symbol ExchangeGetParamsSymbol, params *ExchangeGetParams, ...) (*http.Response, error)
- func (c *Client) GetWalletCashSymbol(ctx context.Context, symbol string, params *GetWalletCashSymbolParams, ...) (*http.Response, error)
- func (c *Client) GetWalletFutureSymbol(ctx context.Context, symbol string, params *GetWalletFutureSymbolParams, ...) (*http.Response, error)
- func (c *Client) GetWalletMarginSymbol(ctx context.Context, symbol string, params *GetWalletMarginSymbolParams, ...) (*http.Response, error)
- func (c *Client) GetWalletOptionSymbol(ctx context.Context, symbol string, params *GetWalletOptionSymbolParams, ...) (*http.Response, error)
- func (c *Client) MarginpremiumGet(ctx context.Context, symbol string, params *MarginpremiumGetParams, ...) (*http.Response, error)
- func (c *Client) OrdersGet(ctx context.Context, params *OrdersGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PositionsGet(ctx context.Context, params *PositionsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PrimaryExchangeGet(ctx context.Context, symbol string, params *PrimaryExchangeGetParams, ...) (*http.Response, error)
- func (c *Client) RankingGet(ctx context.Context, params *RankingGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RegisterPut(ctx context.Context, params *RegisterPutParams, ...) (*http.Response, error)
- func (c *Client) RegisterPutWithBody(ctx context.Context, params *RegisterPutParams, contentType string, ...) (*http.Response, error)
- func (c *Client) RegulationsGet(ctx context.Context, symbol string, params *RegulationsGetParams, ...) (*http.Response, error)
- func (c *Client) SendoderFuturePost(ctx context.Context, params *SendoderFuturePostParams, ...) (*http.Response, error)
- func (c *Client) SendoderFuturePostWithBody(ctx context.Context, params *SendoderFuturePostParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SendorderOptionPost(ctx context.Context, params *SendorderOptionPostParams, ...) (*http.Response, error)
- func (c *Client) SendorderOptionPostWithBody(ctx context.Context, params *SendorderOptionPostParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SendorderPost(ctx context.Context, params *SendorderPostParams, ...) (*http.Response, error)
- func (c *Client) SendorderPostWithBody(ctx context.Context, params *SendorderPostParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SymbolGet(ctx context.Context, symbol string, params *SymbolGetParams, ...) (*http.Response, error)
- func (c *Client) SymbolnameFutureGet(ctx context.Context, params *SymbolnameFutureGetParams, ...) (*http.Response, error)
- func (c *Client) SymbolnameOptionGet(ctx context.Context, params *SymbolnameOptionGetParams, ...) (*http.Response, error)
- func (c *Client) TokenPost(ctx context.Context, body TokenPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TokenPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UnregisterAllPut(ctx context.Context, params *UnregisterAllPutParams, ...) (*http.Response, error)
- func (c *Client) UnregisterPut(ctx context.Context, params *UnregisterPutParams, ...) (*http.Response, error)
- func (c *Client) UnregisterPutWithBody(ctx context.Context, params *UnregisterPutParams, contentType string, ...) (*http.Response, error)
- func (c *Client) WalletCashGet(ctx context.Context, params *WalletCashGetParams, ...) (*http.Response, error)
- func (c *Client) WalletFutureGet(ctx context.Context, params *WalletFutureGetParams, ...) (*http.Response, error)
- func (c *Client) WalletMarginGet(ctx context.Context, params *WalletMarginGetParams, ...) (*http.Response, error)
- func (c *Client) WalletOptionGet(ctx context.Context, params *WalletOptionGetParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ApisoftlimitGetWithResponse(ctx context.Context, params *ApisoftlimitGetParams, ...) (*ApisoftlimitGetResponse, error)
- func (c *ClientWithResponses) BoardGetWithResponse(ctx context.Context, symbol string, params *BoardGetParams, ...) (*BoardGetResponse, error)
- func (c *ClientWithResponses) CancelorderPutWithBodyWithResponse(ctx context.Context, params *CancelorderPutParams, contentType string, ...) (*CancelorderPutResponse, error)
- func (c *ClientWithResponses) CancelorderPutWithResponse(ctx context.Context, params *CancelorderPutParams, ...) (*CancelorderPutResponse, error)
- func (c *ClientWithResponses) ExchangeGetWithResponse(ctx context.Context, symbol ExchangeGetParamsSymbol, params *ExchangeGetParams, ...) (*ExchangeGetResponse, error)
- func (c *ClientWithResponses) GetWalletCashSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletCashSymbolParams, ...) (*GetWalletCashSymbolResponse, error)
- func (c *ClientWithResponses) GetWalletFutureSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletFutureSymbolParams, ...) (*GetWalletFutureSymbolResponse, error)
- func (c *ClientWithResponses) GetWalletMarginSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletMarginSymbolParams, ...) (*GetWalletMarginSymbolResponse, error)
- func (c *ClientWithResponses) GetWalletOptionSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletOptionSymbolParams, ...) (*GetWalletOptionSymbolResponse, error)
- func (c *ClientWithResponses) MarginpremiumGetWithResponse(ctx context.Context, symbol string, params *MarginpremiumGetParams, ...) (*MarginpremiumGetResponse, error)
- func (c *ClientWithResponses) OrdersGetWithResponse(ctx context.Context, params *OrdersGetParams, reqEditors ...RequestEditorFn) (*OrdersGetResponse, error)
- func (c *ClientWithResponses) PositionsGetWithResponse(ctx context.Context, params *PositionsGetParams, reqEditors ...RequestEditorFn) (*PositionsGetResponse, error)
- func (c *ClientWithResponses) PrimaryExchangeGetWithResponse(ctx context.Context, symbol string, params *PrimaryExchangeGetParams, ...) (*PrimaryExchangeGetResponse, error)
- func (c *ClientWithResponses) RankingGetWithResponse(ctx context.Context, params *RankingGetParams, reqEditors ...RequestEditorFn) (*RankingGetResponse, error)
- func (c *ClientWithResponses) RegisterPutWithBodyWithResponse(ctx context.Context, params *RegisterPutParams, contentType string, ...) (*RegisterPutResponse, error)
- func (c *ClientWithResponses) RegisterPutWithResponse(ctx context.Context, params *RegisterPutParams, ...) (*RegisterPutResponse, error)
- func (c *ClientWithResponses) RegulationsGetWithResponse(ctx context.Context, symbol string, params *RegulationsGetParams, ...) (*RegulationsGetResponse, error)
- func (c *ClientWithResponses) SendoderFuturePostWithBodyWithResponse(ctx context.Context, params *SendoderFuturePostParams, contentType string, ...) (*SendoderFuturePostResponse, error)
- func (c *ClientWithResponses) SendoderFuturePostWithResponse(ctx context.Context, params *SendoderFuturePostParams, ...) (*SendoderFuturePostResponse, error)
- func (c *ClientWithResponses) SendorderOptionPostWithBodyWithResponse(ctx context.Context, params *SendorderOptionPostParams, contentType string, ...) (*SendorderOptionPostResponse, error)
- func (c *ClientWithResponses) SendorderOptionPostWithResponse(ctx context.Context, params *SendorderOptionPostParams, ...) (*SendorderOptionPostResponse, error)
- func (c *ClientWithResponses) SendorderPostWithBodyWithResponse(ctx context.Context, params *SendorderPostParams, contentType string, ...) (*SendorderPostResponse, error)
- func (c *ClientWithResponses) SendorderPostWithResponse(ctx context.Context, params *SendorderPostParams, ...) (*SendorderPostResponse, error)
- func (c *ClientWithResponses) SymbolGetWithResponse(ctx context.Context, symbol string, params *SymbolGetParams, ...) (*SymbolGetResponse, error)
- func (c *ClientWithResponses) SymbolnameFutureGetWithResponse(ctx context.Context, params *SymbolnameFutureGetParams, ...) (*SymbolnameFutureGetResponse, error)
- func (c *ClientWithResponses) SymbolnameOptionGetWithResponse(ctx context.Context, params *SymbolnameOptionGetParams, ...) (*SymbolnameOptionGetResponse, error)
- func (c *ClientWithResponses) TokenPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*TokenPostResponse, error)
- func (c *ClientWithResponses) TokenPostWithResponse(ctx context.Context, body TokenPostJSONRequestBody, ...) (*TokenPostResponse, error)
- func (c *ClientWithResponses) UnregisterAllPutWithResponse(ctx context.Context, params *UnregisterAllPutParams, ...) (*UnregisterAllPutResponse, error)
- func (c *ClientWithResponses) UnregisterPutWithBodyWithResponse(ctx context.Context, params *UnregisterPutParams, contentType string, ...) (*UnregisterPutResponse, error)
- func (c *ClientWithResponses) UnregisterPutWithResponse(ctx context.Context, params *UnregisterPutParams, ...) (*UnregisterPutResponse, error)
- func (c *ClientWithResponses) WalletCashGetWithResponse(ctx context.Context, params *WalletCashGetParams, ...) (*WalletCashGetResponse, error)
- func (c *ClientWithResponses) WalletFutureGetWithResponse(ctx context.Context, params *WalletFutureGetParams, ...) (*WalletFutureGetResponse, error)
- func (c *ClientWithResponses) WalletMarginGetWithResponse(ctx context.Context, params *WalletMarginGetParams, ...) (*WalletMarginGetResponse, error)
- func (c *ClientWithResponses) WalletOptionGetWithResponse(ctx context.Context, params *WalletOptionGetParams, ...) (*WalletOptionGetResponse, error)
- type ClientWithResponsesInterface
- type ErrorResponse
- type ExchangeGetParams
- type ExchangeGetParamsSymbol
- type ExchangeGetResponse
- type ExchangeResponse
- type GetWalletCashSymbolParams
- type GetWalletCashSymbolResponse
- type GetWalletFutureSymbolParams
- type GetWalletFutureSymbolResponse
- type GetWalletMarginSymbolParams
- type GetWalletMarginSymbolResponse
- type GetWalletOptionSymbolParams
- type GetWalletOptionSymbolResponse
- type HttpRequestDoer
- type MarginPremiumResponse
- type MarginpremiumGetParams
- type MarginpremiumGetResponse
- type OrderSuccess
- type OrdersGetParams
- type OrdersGetParamsCashmargin
- type OrdersGetParamsProduct
- type OrdersGetParamsSide
- type OrdersGetParamsState
- type OrdersGetResponse
- type OrdersSuccess
- type Positions
- type PositionsDeriv
- type PositionsGetParams
- type PositionsGetParamsProduct
- type PositionsGetParamsSide
- type PositionsGetResponse
- type PositionsSuccess
- type PrimaryExchangeGetParams
- type PrimaryExchangeGetResponse
- type PrimaryExchangeResponse
- type RankingByCategoryResponse
- type RankingByMarginResponse
- type RankingByTickCountResponse
- type RankingByTradeValueResponse
- type RankingByTradeVolumeResponse
- type RankingDefaultResponse
- type RankingGetParams
- type RankingGetParamsExchangeDivision
- type RankingGetParamsType
- type RankingGetResponse
- type RegistSuccess
- type RegisterPutJSONRequestBody
- type RegisterPutParams
- type RegisterPutResponse
- type RegulationsGetParams
- type RegulationsGetResponse
- type RegulationsResponse
- type RequestCancelOrder
- type RequestEditorFn
- type RequestRegister
- type RequestSendOrder
- type RequestSendOrderDerivFuture
- type RequestSendOrderDerivOption
- type RequestToken
- type RequestUnregister
- type SendoderFuturePostJSONRequestBody
- type SendoderFuturePostParams
- type SendoderFuturePostResponse
- type SendorderOptionPostJSONRequestBody
- type SendorderOptionPostParams
- type SendorderOptionPostResponse
- type SendorderPostJSONRequestBody
- type SendorderPostParams
- type SendorderPostResponse
- type SymbolGetParams
- type SymbolGetResponse
- type SymbolNameSuccess
- type SymbolSuccess
- type SymbolnameFutureGetParams
- type SymbolnameFutureGetResponse
- type SymbolnameOptionGetParams
- type SymbolnameOptionGetResponse
- type TokenPostJSONRequestBody
- type TokenPostResponse
- type TokenSuccess
- type UnregisterAllPutParams
- type UnregisterAllPutResponse
- type UnregisterAllSuccess
- type UnregisterPutJSONRequestBody
- type UnregisterPutParams
- type UnregisterPutResponse
- type WalletCashGetParams
- type WalletCashGetResponse
- type WalletCashSuccess
- type WalletFutureGetParams
- type WalletFutureGetResponse
- type WalletFutureSuccess
- type WalletMarginGetParams
- type WalletMarginGetResponse
- type WalletMarginSuccess
- type WalletOptionGetParams
- type WalletOptionGetResponse
- type WalletOptionSuccess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewApisoftlimitGetRequest ¶
func NewApisoftlimitGetRequest(server string, params *ApisoftlimitGetParams) (*http.Request, error)
NewApisoftlimitGetRequest generates requests for ApisoftlimitGet
func NewBoardGetRequest ¶
func NewBoardGetRequest(server string, symbol string, params *BoardGetParams) (*http.Request, error)
NewBoardGetRequest generates requests for BoardGet
func NewCancelorderPutRequest ¶
func NewCancelorderPutRequest(server string, params *CancelorderPutParams, body CancelorderPutJSONRequestBody) (*http.Request, error)
NewCancelorderPutRequest calls the generic CancelorderPut builder with application/json body
func NewCancelorderPutRequestWithBody ¶
func NewCancelorderPutRequestWithBody(server string, params *CancelorderPutParams, contentType string, body io.Reader) (*http.Request, error)
NewCancelorderPutRequestWithBody generates requests for CancelorderPut with any type of body
func NewExchangeGetRequest ¶
func NewExchangeGetRequest(server string, symbol ExchangeGetParamsSymbol, params *ExchangeGetParams) (*http.Request, error)
NewExchangeGetRequest generates requests for ExchangeGet
func NewGetWalletCashSymbolRequest ¶
func NewGetWalletCashSymbolRequest(server string, symbol string, params *GetWalletCashSymbolParams) (*http.Request, error)
NewGetWalletCashSymbolRequest generates requests for GetWalletCashSymbol
func NewGetWalletFutureSymbolRequest ¶
func NewGetWalletFutureSymbolRequest(server string, symbol string, params *GetWalletFutureSymbolParams) (*http.Request, error)
NewGetWalletFutureSymbolRequest generates requests for GetWalletFutureSymbol
func NewGetWalletMarginSymbolRequest ¶
func NewGetWalletMarginSymbolRequest(server string, symbol string, params *GetWalletMarginSymbolParams) (*http.Request, error)
NewGetWalletMarginSymbolRequest generates requests for GetWalletMarginSymbol
func NewGetWalletOptionSymbolRequest ¶
func NewGetWalletOptionSymbolRequest(server string, symbol string, params *GetWalletOptionSymbolParams) (*http.Request, error)
NewGetWalletOptionSymbolRequest generates requests for GetWalletOptionSymbol
func NewMarginpremiumGetRequest ¶
func NewMarginpremiumGetRequest(server string, symbol string, params *MarginpremiumGetParams) (*http.Request, error)
NewMarginpremiumGetRequest generates requests for MarginpremiumGet
func NewOrdersGetRequest ¶
func NewOrdersGetRequest(server string, params *OrdersGetParams) (*http.Request, error)
NewOrdersGetRequest generates requests for OrdersGet
func NewPositionsGetRequest ¶
func NewPositionsGetRequest(server string, params *PositionsGetParams) (*http.Request, error)
NewPositionsGetRequest generates requests for PositionsGet
func NewPrimaryExchangeGetRequest ¶
func NewPrimaryExchangeGetRequest(server string, symbol string, params *PrimaryExchangeGetParams) (*http.Request, error)
NewPrimaryExchangeGetRequest generates requests for PrimaryExchangeGet
func NewRankingGetRequest ¶
func NewRankingGetRequest(server string, params *RankingGetParams) (*http.Request, error)
NewRankingGetRequest generates requests for RankingGet
func NewRegisterPutRequest ¶
func NewRegisterPutRequest(server string, params *RegisterPutParams, body RegisterPutJSONRequestBody) (*http.Request, error)
NewRegisterPutRequest calls the generic RegisterPut builder with application/json body
func NewRegisterPutRequestWithBody ¶
func NewRegisterPutRequestWithBody(server string, params *RegisterPutParams, contentType string, body io.Reader) (*http.Request, error)
NewRegisterPutRequestWithBody generates requests for RegisterPut with any type of body
func NewRegulationsGetRequest ¶
func NewRegulationsGetRequest(server string, symbol string, params *RegulationsGetParams) (*http.Request, error)
NewRegulationsGetRequest generates requests for RegulationsGet
func NewSendoderFuturePostRequest ¶
func NewSendoderFuturePostRequest(server string, params *SendoderFuturePostParams, body SendoderFuturePostJSONRequestBody) (*http.Request, error)
NewSendoderFuturePostRequest calls the generic SendoderFuturePost builder with application/json body
func NewSendoderFuturePostRequestWithBody ¶
func NewSendoderFuturePostRequestWithBody(server string, params *SendoderFuturePostParams, contentType string, body io.Reader) (*http.Request, error)
NewSendoderFuturePostRequestWithBody generates requests for SendoderFuturePost with any type of body
func NewSendorderOptionPostRequest ¶
func NewSendorderOptionPostRequest(server string, params *SendorderOptionPostParams, body SendorderOptionPostJSONRequestBody) (*http.Request, error)
NewSendorderOptionPostRequest calls the generic SendorderOptionPost builder with application/json body
func NewSendorderOptionPostRequestWithBody ¶
func NewSendorderOptionPostRequestWithBody(server string, params *SendorderOptionPostParams, contentType string, body io.Reader) (*http.Request, error)
NewSendorderOptionPostRequestWithBody generates requests for SendorderOptionPost with any type of body
func NewSendorderPostRequest ¶
func NewSendorderPostRequest(server string, params *SendorderPostParams, body SendorderPostJSONRequestBody) (*http.Request, error)
NewSendorderPostRequest calls the generic SendorderPost builder with application/json body
func NewSendorderPostRequestWithBody ¶
func NewSendorderPostRequestWithBody(server string, params *SendorderPostParams, contentType string, body io.Reader) (*http.Request, error)
NewSendorderPostRequestWithBody generates requests for SendorderPost with any type of body
func NewSymbolGetRequest ¶
func NewSymbolGetRequest(server string, symbol string, params *SymbolGetParams) (*http.Request, error)
NewSymbolGetRequest generates requests for SymbolGet
func NewSymbolnameFutureGetRequest ¶
func NewSymbolnameFutureGetRequest(server string, params *SymbolnameFutureGetParams) (*http.Request, error)
NewSymbolnameFutureGetRequest generates requests for SymbolnameFutureGet
func NewSymbolnameOptionGetRequest ¶
func NewSymbolnameOptionGetRequest(server string, params *SymbolnameOptionGetParams) (*http.Request, error)
NewSymbolnameOptionGetRequest generates requests for SymbolnameOptionGet
func NewTokenPostRequest ¶
func NewTokenPostRequest(server string, body TokenPostJSONRequestBody) (*http.Request, error)
NewTokenPostRequest calls the generic TokenPost builder with application/json body
func NewTokenPostRequestWithBody ¶
func NewTokenPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewTokenPostRequestWithBody generates requests for TokenPost with any type of body
func NewUnregisterAllPutRequest ¶
func NewUnregisterAllPutRequest(server string, params *UnregisterAllPutParams) (*http.Request, error)
NewUnregisterAllPutRequest generates requests for UnregisterAllPut
func NewUnregisterPutRequest ¶
func NewUnregisterPutRequest(server string, params *UnregisterPutParams, body UnregisterPutJSONRequestBody) (*http.Request, error)
NewUnregisterPutRequest calls the generic UnregisterPut builder with application/json body
func NewUnregisterPutRequestWithBody ¶
func NewUnregisterPutRequestWithBody(server string, params *UnregisterPutParams, contentType string, body io.Reader) (*http.Request, error)
NewUnregisterPutRequestWithBody generates requests for UnregisterPut with any type of body
func NewWalletCashGetRequest ¶
func NewWalletCashGetRequest(server string, params *WalletCashGetParams) (*http.Request, error)
NewWalletCashGetRequest generates requests for WalletCashGet
func NewWalletFutureGetRequest ¶
func NewWalletFutureGetRequest(server string, params *WalletFutureGetParams) (*http.Request, error)
NewWalletFutureGetRequest generates requests for WalletFutureGet
func NewWalletMarginGetRequest ¶
func NewWalletMarginGetRequest(server string, params *WalletMarginGetParams) (*http.Request, error)
NewWalletMarginGetRequest generates requests for WalletMarginGet
func NewWalletOptionGetRequest ¶
func NewWalletOptionGetRequest(server string, params *WalletOptionGetParams) (*http.Request, error)
NewWalletOptionGetRequest generates requests for WalletOptionGet
Types ¶
type ApiSoftLimitResponse ¶
type ApiSoftLimitResponse struct { // Future 先物のワンショット上限<br>※単位は枚 Future *float64 `json:"Future,omitempty"` // FutureMini 先物ミニのワンショット上限<br>※単位は枚 FutureMini *float64 `json:"FutureMini,omitempty"` // KabuSVersion kabuステーションのバージョン KabuSVersion *string `json:"KabuSVersion,omitempty"` // Margin 信用のワンショット上限<br>※単位は万円 Margin *float64 `json:"Margin,omitempty"` // Option オプションのワンショット上限<br>※単位は枚 Option *float64 `json:"Option,omitempty"` // Stock 現物のワンショット上限<br>※単位は万円 Stock *float64 `json:"Stock,omitempty"` }
ApiSoftLimitResponse defines model for ApiSoftLimitResponse.
type ApisoftlimitGetParams ¶
type ApisoftlimitGetParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
ApisoftlimitGetParams defines parameters for ApisoftlimitGet.
type ApisoftlimitGetResponse ¶
type ApisoftlimitGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ApiSoftLimitResponse JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseApisoftlimitGetResponse ¶
func ParseApisoftlimitGetResponse(rsp *http.Response) (*ApisoftlimitGetResponse, error)
ParseApisoftlimitGetResponse parses an HTTP response from a ApisoftlimitGetWithResponse call
func (ApisoftlimitGetResponse) Status ¶
func (r ApisoftlimitGetResponse) Status() string
Status returns HTTPResponse.Status
func (ApisoftlimitGetResponse) StatusCode ¶
func (r ApisoftlimitGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BoardGetParams ¶
type BoardGetParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
BoardGetParams defines parameters for BoardGet.
type BoardGetResponse ¶
type BoardGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *BoardSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseBoardGetResponse ¶
func ParseBoardGetResponse(rsp *http.Response) (*BoardGetResponse, error)
ParseBoardGetResponse parses an HTTP response from a BoardGetWithResponse call
func (BoardGetResponse) Status ¶
func (r BoardGetResponse) Status() string
Status returns HTTPResponse.Status
func (BoardGetResponse) StatusCode ¶
func (r BoardGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BoardSuccess ¶
type BoardSuccess struct { // AskPrice 最良買気配値段 ※①<br>※株式・先物・オプション銘柄の場合のみ AskPrice *float64 `json:"AskPrice,omitempty"` // AskQty 最良買気配数量 ※①<br>※株式・先物・オプション銘柄の場合のみ AskQty *float64 `json:"AskQty,omitempty"` // AskSign 最良買気配フラグ ※①<br>※株式・先物・オプション銘柄の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0000</td> // <td>事象なし</td> // </tr> // <tr> // <td>0101</td> // <td>一般気配</td> // </tr> // <tr> // <td>0102</td> // <td>特別気配</td> // </tr> // <tr> // <td>0103</td> // <td>注意気配</td> // </tr> // <tr> // <td>0107</td> // <td>寄前気配</td> // </tr> // <tr> // <td>0108</td> // <td>停止前特別気配</td> // </tr> // <tr> // <td>0109</td> // <td>引け後気配</td> // </tr> // <tr> // <td>0116</td> // <td>寄前気配約定成立ポイントなし</td> // </tr> // <tr> // <td>0117</td> // <td>寄前気配約定成立ポイントあり</td> // </tr> // <tr> // <td>0118</td> // <td>連続約定気配</td> // </tr> // <tr> // <td>0119</td> // <td>停止前の連続約定気配</td> // </tr> // <tr> // <td>0120</td> // <td>買い上がり売り下がり中</td> // </tr> // </tbody> // </table> AskSign *string `json:"AskSign,omitempty"` // AskTime 最良買気配時刻 ※①<br>※株式銘柄の場合のみ AskTime *time.Time `json:"AskTime,omitempty"` // BidPrice 最良売気配値段 ※①<br>※株式・先物・オプション銘柄の場合のみ BidPrice *float64 `json:"BidPrice,omitempty"` // BidQty 最良売気配数量 ※①<br>※株式・先物・オプション銘柄の場合のみ BidQty *float64 `json:"BidQty,omitempty"` // BidSign 最良売気配フラグ ※①<br>※株式・先物・オプション銘柄の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0000</td> // <td>事象なし</td> // </tr> // <tr> // <td>0101</td> // <td>一般気配</td> // </tr> // <tr> // <td>0102</td> // <td>特別気配</td> // </tr> // <tr> // <td>0103</td> // <td>注意気配</td> // </tr> // <tr> // <td>0107</td> // <td>寄前気配</td> // </tr> // <tr> // <td>0108</td> // <td>停止前特別気配</td> // </tr> // <tr> // <td>0109</td> // <td>引け後気配</td> // </tr> // <tr> // <td>0116</td> // <td>寄前気配約定成立ポイントなし</td> // </tr> // <tr> // <td>0117</td> // <td>寄前気配約定成立ポイントあり</td> // </tr> // <tr> // <td>0118</td> // <td>連続約定気配</td> // </tr> // <tr> // <td>0119</td> // <td>停止前の連続約定気配</td> // </tr> // <tr> // <td>0120</td> // <td>買い上がり売り下がり中</td> // </tr> // </tbody> // </table> BidSign *string `json:"BidSign,omitempty"` // BidTime 最良売気配時刻 ※①<br>※株式銘柄の場合のみ BidTime *time.Time `json:"BidTime,omitempty"` // Buy1 買気配数量1本目 Buy1 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` // Sign 気配フラグ<br>※株式・先物・オプション銘柄の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0000</td> // <td>事象なし</td> // </tr> // <tr> // <td>0101</td> // <td>一般気配</td> // </tr> // <tr> // <td>0102</td> // <td>特別気配</td> // </tr> // <tr> // <td>0103</td> // <td>注意気配</td> // </tr> // <tr> // <td>0107</td> // <td>寄前気配</td> // </tr> // <tr> // <td>0108</td> // <td>停止前特別気配</td> // </tr> // <tr> // <td>0109</td> // <td>引け後気配</td> // </tr> // <tr> // <td>0116</td> // <td>寄前気配約定成立ポイントなし</td> // </tr> // <tr> // <td>0117</td> // <td>寄前気配約定成立ポイントあり</td> // </tr> // <tr> // <td>0118</td> // <td>連続約定気配</td> // </tr> // <tr> // <td>0119</td> // <td>停止前の連続約定気配</td> // </tr> // <tr> // <td>0120</td> // <td>買い上がり売り下がり中</td> // </tr> // </tbody> // </table> Sign *string `json:"Sign,omitempty"` // Time 時刻<br>※株式銘柄の場合のみ Time *time.Time `json:"Time,omitempty"` } `json:"Buy1,omitempty"` // Buy10 買気配数量10本目 Buy10 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Buy10,omitempty"` // Buy2 買気配数量2本目 Buy2 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Buy2,omitempty"` // Buy3 買気配数量3本目 Buy3 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Buy3,omitempty"` // Buy4 買気配数量4本目 Buy4 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Buy4,omitempty"` // Buy5 買気配数量5本目 Buy5 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Buy5,omitempty"` // Buy6 買気配数量6本目 Buy6 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Buy6,omitempty"` // Buy7 買気配数量7本目 Buy7 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Buy7,omitempty"` // Buy8 買気配数量8本目 Buy8 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Buy8,omitempty"` // Buy9 買気配数量9本目 Buy9 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Buy9,omitempty"` // CalcPrice 計算用現値 CalcPrice *float64 `json:"CalcPrice,omitempty"` // ChangePreviousClose 前日比 ChangePreviousClose *float64 `json:"ChangePreviousClose,omitempty"` // ChangePreviousClosePer 騰落率 ChangePreviousClosePer *float64 `json:"ChangePreviousClosePer,omitempty"` // ClearingPrice 清算値<br>※先物銘柄の場合のみ ClearingPrice *float64 `json:"ClearingPrice,omitempty"` // CurrentPrice 現値 CurrentPrice *float64 `json:"CurrentPrice,omitempty"` // CurrentPriceChangeStatus 現値前値比較 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0000</td> // <td>事象なし</td> // </tr> // <tr> // <td>0056</td> // <td>変わらず</td> // </tr> // <tr> // <td>0057</td> // <td>UP</td> // </tr> // <tr> // <td>0058</td> // <td>DOWN</td> // </tr> // <tr> // <td>0059</td> // <td>中断板寄り後の初値</td> // </tr> // <tr> // <td>0060</td> // <td>ザラバ引け</td> // </tr> // <tr> // <td>0061</td> // <td>板寄り引け</td> // </tr> // <tr> // <td>0062</td> // <td>中断引け</td> // </tr> // <tr> // <td>0063</td> // <td>ダウン引け</td> // </tr> // <tr> // <td>0064</td> // <td>逆転終値</td> // </tr> // <tr> // <td>0066</td> // <td>特別気配引け</td> // </tr> // <tr> // <td>0067</td> // <td>一時留保引け</td> // </tr> // <tr> // <td>0068</td> // <td>売買停止引け</td> // </tr> // <tr> // <td>0069</td> // <td>サーキットブレーカ引け</td> // </tr> // <tr> // <td>0431</td> // <td>ダイナミックサーキットブレーカ引け</td> // </tr> // </tbody> // </table> CurrentPriceChangeStatus *string `json:"CurrentPriceChangeStatus,omitempty"` // CurrentPriceStatus 現値ステータス // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>現値</td> // </tr> // <tr> // <td>2</td> // <td>不連続歩み</td> // </tr> // <tr> // <td>3</td> // <td>板寄せ</td> // </tr> // <tr> // <td>4</td> // <td>システム障害</td> // </tr> // <tr> // <td>5</td> // <td>中断</td> // </tr> // <tr> // <td>6</td> // <td>売買停止</td> // </tr> // <tr> // <td>7</td> // <td>売買停止・システム停止解除</td> // </tr> // <tr> // <td>8</td> // <td>終値</td> // </tr> // <tr> // <td>9</td> // <td>システム停止</td> // </tr> // <tr> // <td>10</td> // <td>概算値</td> // </tr> // <tr> // <td>11</td> // <td>参考値</td> // </tr> // <tr> // <td>12</td> // <td>サーキットブレイク実施中</td> // </tr> // <tr> // <td>13</td> // <td>システム障害解除</td> // </tr> // <tr> // <td>14</td> // <td>サーキットブレイク解除</td> // </tr> // <tr> // <td>15</td> // <td>中断解除</td> // </tr> // <tr> // <td>16</td> // <td>一時留保中</td> // </tr> // <tr> // <td>17</td> // <td>一時留保解除</td> // </tr> // <tr> // <td>18</td> // <td>ファイル障害</td> // </tr> // <tr> // <td>19</td> // <td>ファイル障害解除</td> // </tr> // <tr> // <td>20</td> // <td>Spread/Strategy</td> // </tr> // <tr> // <td>21</td> // <td>ダイナミックサーキットブレイク発動</td> // </tr> // <tr> // <td>22</td> // <td>ダイナミックサーキットブレイク解除</td> // </tr> // <tr> // <td>23</td> // <td>板寄せ約定</td> // </tr> // </tbody> // </table> CurrentPriceStatus *int32 `json:"CurrentPriceStatus,omitempty"` // CurrentPriceTime 現値時刻 CurrentPriceTime *time.Time `json:"CurrentPriceTime,omitempty"` // Delta デルタ<br>※オプション銘柄かつ日通しの場合のみ Delta *float64 `json:"Delta,omitempty"` // Exchange 市場コード<br>※株式・先物・オプション銘柄の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>東証</td> // </tr> // <tr> // <td>3</td> // <td>名証</td> // </tr> // <tr> // <td>5</td> // <td>福証</td> // </tr> // <tr> // <td>6</td> // <td>札証</td> // </tr> // <tr> // <td>2</td> // <td>日通し</td> // </tr> // <tr> // <td>23</td> // <td>日中</td> // </tr> // <tr> // <td>24</td> // <td>夜間</td> // </tr> // </tbody> // </table> Exchange *int32 `json:"Exchange,omitempty"` // ExchangeName 市場名称<br>※株式・先物・オプション銘柄の場合のみ ExchangeName *string `json:"ExchangeName,omitempty"` // Gamma ガンマ<br>※オプション銘柄かつ日通しの場合のみ Gamma *float64 `json:"Gamma,omitempty"` // HighPrice 高値 HighPrice *float64 `json:"HighPrice,omitempty"` // HighPriceTime 高値時刻 HighPriceTime *time.Time `json:"HighPriceTime,omitempty"` // IV インプライド・ボラティリティ<br>※オプション銘柄かつ日通しの場合のみ IV *float64 `json:"IV,omitempty"` // LowPrice 安値 LowPrice *float64 `json:"LowPrice,omitempty"` // LowPriceTime 安値時刻 LowPriceTime *time.Time `json:"LowPriceTime,omitempty"` // MarketOrderBuyQty 買成行数量<br>※株式銘柄の場合のみ MarketOrderBuyQty *float64 `json:"MarketOrderBuyQty,omitempty"` // MarketOrderSellQty 売成行数量<br>※株式銘柄の場合のみ MarketOrderSellQty *float64 `json:"MarketOrderSellQty,omitempty"` // OpeningPrice 始値 OpeningPrice *float64 `json:"OpeningPrice,omitempty"` // OpeningPriceTime 始値時刻 OpeningPriceTime *time.Time `json:"OpeningPriceTime,omitempty"` // OverSellQty OVER気配数量<br>※株式銘柄の場合のみ OverSellQty *float64 `json:"OverSellQty,omitempty"` // PreviousClose 前日終値 PreviousClose *float64 `json:"PreviousClose,omitempty"` // PreviousCloseTime 前日終値日付 PreviousCloseTime *time.Time `json:"PreviousCloseTime,omitempty"` // SecurityType 銘柄種別 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>指数</td> // </tr> // <tr> // <td>1</td> // <td>現物</td> // </tr> // <tr> // <td>101</td> // <td>日経225先物</td> // </tr> // <tr> // <td>103</td> // <td>日経225OP</td> // </tr> // <tr> // <td>107</td> // <td>TOPIX先物</td> // </tr> // <tr> // <td>121</td> // <td>JPX400先物</td> // </tr> // <tr> // <td>144</td> // <td>NYダウ</td> // </tr> // <tr> // <td>145</td> // <td>日経平均VI</td> // </tr> // <tr> // <td>154</td> // <td>東証マザーズ指数先物</td> // </tr> // <tr> // <td>155</td> // <td>TOPIX_REIT</td> // </tr> // <tr> // <td>171</td> // <td>TOPIX CORE30</td> // </tr> // <tr> // <td>901</td> // <td>日経平均225ミニ先物</td> // </tr> // <tr> // <td>907</td> // <td>TOPIXミニ先物</td> // </tr> // </tbody> // </table> SecurityType *int32 `json:"SecurityType,omitempty"` // Sell1 売気配数量1本目 Sell1 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` // Sign 気配フラグ<br>※株式・先物・オプション銘柄の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0000</td> // <td>事象なし</td> // </tr> // <tr> // <td>0101</td> // <td>一般気配</td> // </tr> // <tr> // <td>0102</td> // <td>特別気配</td> // </tr> // <tr> // <td>0103</td> // <td>注意気配</td> // </tr> // <tr> // <td>0107</td> // <td>寄前気配</td> // </tr> // <tr> // <td>0108</td> // <td>停止前特別気配</td> // </tr> // <tr> // <td>0109</td> // <td>引け後気配</td> // </tr> // <tr> // <td>0116</td> // <td>寄前気配約定成立ポイントなし</td> // </tr> // <tr> // <td>0117</td> // <td>寄前気配約定成立ポイントあり</td> // </tr> // <tr> // <td>0118</td> // <td>連続約定気配</td> // </tr> // <tr> // <td>0119</td> // <td>停止前の連続約定気配</td> // </tr> // <tr> // <td>0120</td> // <td>買い上がり売り下がり中</td> // </tr> // </tbody> // </table> Sign *string `json:"Sign,omitempty"` // Time 時刻<br>※株式銘柄の場合のみ Time *time.Time `json:"Time,omitempty"` } `json:"Sell1,omitempty"` // Sell10 売気配数量10本目 Sell10 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Sell10,omitempty"` // Sell2 売気配数量2本目 Sell2 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Sell2,omitempty"` // Sell3 売気配数量3本目 Sell3 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Sell3,omitempty"` // Sell4 売気配数量4本目 Sell4 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Sell4,omitempty"` // Sell5 売気配数量5本目 Sell5 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Sell5,omitempty"` // Sell6 売気配数量6本目 Sell6 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Sell6,omitempty"` // Sell7 売気配数量7本目 Sell7 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Sell7,omitempty"` // Sell8 売気配数量8本目 Sell8 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Sell8,omitempty"` // Sell9 売気配数量9本目 Sell9 *struct { // Price 値段<br>※株式・先物・オプション銘柄の場合のみ Price *float64 `json:"Price,omitempty"` // Qty 数量<br>※株式・先物・オプション銘柄の場合のみ Qty *float64 `json:"Qty,omitempty"` } `json:"Sell9,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` // SymbolName 銘柄名 SymbolName *string `json:"SymbolName,omitempty"` // Theta セータ<br>※オプション銘柄かつ日通しの場合のみ Theta *float64 `json:"Theta,omitempty"` // TotalMarketValue 時価総額<br>※株式銘柄の場合のみ TotalMarketValue *float64 `json:"TotalMarketValue,omitempty"` // TradingValue 売買代金<br>※株式・先物・オプション銘柄の場合のみ TradingValue *float64 `json:"TradingValue,omitempty"` // TradingVolume 売買高<br>※株式・先物・オプション銘柄の場合のみ TradingVolume *float64 `json:"TradingVolume,omitempty"` // TradingVolumeTime 売買高時刻<br>※株式・先物・オプション銘柄の場合のみ TradingVolumeTime *time.Time `json:"TradingVolumeTime,omitempty"` // UnderBuyQty UNDER気配数量<br>※株式銘柄の場合のみ UnderBuyQty *float64 `json:"UnderBuyQty,omitempty"` // VWAP 売買高加重平均価格(VWAP)<br>※株式・先物・オプション銘柄の場合のみ VWAP *float64 `json:"VWAP,omitempty"` // Vega ベガ<br>※オプション銘柄かつ日通しの場合のみ Vega *float64 `json:"Vega,omitempty"` }
BoardSuccess 下記にあるBIDとASKとは、トレーダー目線から見た場合の値であるため、BidPrice=Sell1のPrice、AskPrice=Buy1のPriceという数値となります。
type CancelorderPutJSONRequestBody ¶
type CancelorderPutJSONRequestBody = RequestCancelOrder
CancelorderPutJSONRequestBody defines body for CancelorderPut for application/json ContentType.
type CancelorderPutParams ¶
type CancelorderPutParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
CancelorderPutParams defines parameters for CancelorderPut.
type CancelorderPutResponse ¶
type CancelorderPutResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrderSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseCancelorderPutResponse ¶
func ParseCancelorderPutResponse(rsp *http.Response) (*CancelorderPutResponse, error)
ParseCancelorderPutResponse parses an HTTP response from a CancelorderPutWithResponse call
func (CancelorderPutResponse) Status ¶
func (r CancelorderPutResponse) Status() string
Status returns HTTPResponse.Status
func (CancelorderPutResponse) StatusCode ¶
func (r CancelorderPutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) ApisoftlimitGet ¶
func (c *Client) ApisoftlimitGet(ctx context.Context, params *ApisoftlimitGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BoardGet ¶
func (c *Client) BoardGet(ctx context.Context, symbol string, params *BoardGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CancelorderPut ¶
func (c *Client) CancelorderPut(ctx context.Context, params *CancelorderPutParams, body CancelorderPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CancelorderPutWithBody ¶
func (*Client) ExchangeGet ¶
func (c *Client) ExchangeGet(ctx context.Context, symbol ExchangeGetParamsSymbol, params *ExchangeGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetWalletCashSymbol ¶
func (c *Client) GetWalletCashSymbol(ctx context.Context, symbol string, params *GetWalletCashSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetWalletFutureSymbol ¶
func (c *Client) GetWalletFutureSymbol(ctx context.Context, symbol string, params *GetWalletFutureSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetWalletMarginSymbol ¶
func (c *Client) GetWalletMarginSymbol(ctx context.Context, symbol string, params *GetWalletMarginSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetWalletOptionSymbol ¶
func (c *Client) GetWalletOptionSymbol(ctx context.Context, symbol string, params *GetWalletOptionSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarginpremiumGet ¶
func (c *Client) MarginpremiumGet(ctx context.Context, symbol string, params *MarginpremiumGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OrdersGet ¶
func (c *Client) OrdersGet(ctx context.Context, params *OrdersGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PositionsGet ¶
func (c *Client) PositionsGet(ctx context.Context, params *PositionsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PrimaryExchangeGet ¶
func (c *Client) PrimaryExchangeGet(ctx context.Context, symbol string, params *PrimaryExchangeGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RankingGet ¶
func (c *Client) RankingGet(ctx context.Context, params *RankingGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RegisterPut ¶
func (c *Client) RegisterPut(ctx context.Context, params *RegisterPutParams, body RegisterPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RegisterPutWithBody ¶
func (*Client) RegulationsGet ¶
func (c *Client) RegulationsGet(ctx context.Context, symbol string, params *RegulationsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendoderFuturePost ¶
func (c *Client) SendoderFuturePost(ctx context.Context, params *SendoderFuturePostParams, body SendoderFuturePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendoderFuturePostWithBody ¶
func (*Client) SendorderOptionPost ¶
func (c *Client) SendorderOptionPost(ctx context.Context, params *SendorderOptionPostParams, body SendorderOptionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendorderOptionPostWithBody ¶
func (*Client) SendorderPost ¶
func (c *Client) SendorderPost(ctx context.Context, params *SendorderPostParams, body SendorderPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendorderPostWithBody ¶
func (*Client) SymbolGet ¶
func (c *Client) SymbolGet(ctx context.Context, symbol string, params *SymbolGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SymbolnameFutureGet ¶
func (c *Client) SymbolnameFutureGet(ctx context.Context, params *SymbolnameFutureGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SymbolnameOptionGet ¶
func (c *Client) SymbolnameOptionGet(ctx context.Context, params *SymbolnameOptionGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TokenPost ¶
func (c *Client) TokenPost(ctx context.Context, body TokenPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TokenPostWithBody ¶
func (*Client) UnregisterAllPut ¶
func (c *Client) UnregisterAllPut(ctx context.Context, params *UnregisterAllPutParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnregisterPut ¶
func (c *Client) UnregisterPut(ctx context.Context, params *UnregisterPutParams, body UnregisterPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnregisterPutWithBody ¶
func (*Client) WalletCashGet ¶
func (c *Client) WalletCashGet(ctx context.Context, params *WalletCashGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) WalletFutureGet ¶
func (c *Client) WalletFutureGet(ctx context.Context, params *WalletFutureGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) WalletMarginGet ¶
func (c *Client) WalletMarginGet(ctx context.Context, params *WalletMarginGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) WalletOptionGet ¶
func (c *Client) WalletOptionGet(ctx context.Context, params *WalletOptionGetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // ApisoftlimitGet request ApisoftlimitGet(ctx context.Context, params *ApisoftlimitGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // BoardGet request BoardGet(ctx context.Context, symbol string, params *BoardGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CancelorderPut request with any body CancelorderPutWithBody(ctx context.Context, params *CancelorderPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CancelorderPut(ctx context.Context, params *CancelorderPutParams, body CancelorderPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ExchangeGet request ExchangeGet(ctx context.Context, symbol ExchangeGetParamsSymbol, params *ExchangeGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) MarginpremiumGet(ctx context.Context, symbol string, params *MarginpremiumGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // OrdersGet request OrdersGet(ctx context.Context, params *OrdersGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PositionsGet request PositionsGet(ctx context.Context, params *PositionsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PrimaryExchangeGet request PrimaryExchangeGet(ctx context.Context, symbol string, params *PrimaryExchangeGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // RankingGet request RankingGet(ctx context.Context, params *RankingGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // RegisterPut request with any body RegisterPutWithBody(ctx context.Context, params *RegisterPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) RegisterPut(ctx context.Context, params *RegisterPutParams, body RegisterPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // RegulationsGet request RegulationsGet(ctx context.Context, symbol string, params *RegulationsGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // SendorderPost request with any body SendorderPostWithBody(ctx context.Context, params *SendorderPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SendorderPost(ctx context.Context, params *SendorderPostParams, body SendorderPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // SendoderFuturePost request with any body SendoderFuturePostWithBody(ctx context.Context, params *SendoderFuturePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SendoderFuturePost(ctx context.Context, params *SendoderFuturePostParams, body SendoderFuturePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // SendorderOptionPost request with any body SendorderOptionPostWithBody(ctx context.Context, params *SendorderOptionPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SendorderOptionPost(ctx context.Context, params *SendorderOptionPostParams, body SendorderOptionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // SymbolGet request SymbolGet(ctx context.Context, symbol string, params *SymbolGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // SymbolnameFutureGet request SymbolnameFutureGet(ctx context.Context, params *SymbolnameFutureGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // SymbolnameOptionGet request SymbolnameOptionGet(ctx context.Context, params *SymbolnameOptionGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // TokenPost request with any body TokenPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) TokenPost(ctx context.Context, body TokenPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // UnregisterPut request with any body UnregisterPutWithBody(ctx context.Context, params *UnregisterPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UnregisterPut(ctx context.Context, params *UnregisterPutParams, body UnregisterPutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // UnregisterAllPut request UnregisterAllPut(ctx context.Context, params *UnregisterAllPutParams, reqEditors ...RequestEditorFn) (*http.Response, error) // WalletCashGet request WalletCashGet(ctx context.Context, params *WalletCashGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetWalletCashSymbol request GetWalletCashSymbol(ctx context.Context, symbol string, params *GetWalletCashSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error) // WalletFutureGet request WalletFutureGet(ctx context.Context, params *WalletFutureGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetWalletFutureSymbol request GetWalletFutureSymbol(ctx context.Context, symbol string, params *GetWalletFutureSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error) // WalletMarginGet request WalletMarginGet(ctx context.Context, params *WalletMarginGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetWalletMarginSymbol request GetWalletMarginSymbol(ctx context.Context, symbol string, params *GetWalletMarginSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error) // WalletOptionGet request WalletOptionGet(ctx context.Context, params *WalletOptionGetParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetWalletOptionSymbol request GetWalletOptionSymbol(ctx context.Context, symbol string, params *GetWalletOptionSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) ApisoftlimitGetWithResponse ¶
func (c *ClientWithResponses) ApisoftlimitGetWithResponse(ctx context.Context, params *ApisoftlimitGetParams, reqEditors ...RequestEditorFn) (*ApisoftlimitGetResponse, error)
ApisoftlimitGetWithResponse request returning *ApisoftlimitGetResponse
func (*ClientWithResponses) BoardGetWithResponse ¶
func (c *ClientWithResponses) BoardGetWithResponse(ctx context.Context, symbol string, params *BoardGetParams, reqEditors ...RequestEditorFn) (*BoardGetResponse, error)
BoardGetWithResponse request returning *BoardGetResponse
func (*ClientWithResponses) CancelorderPutWithBodyWithResponse ¶
func (c *ClientWithResponses) CancelorderPutWithBodyWithResponse(ctx context.Context, params *CancelorderPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelorderPutResponse, error)
CancelorderPutWithBodyWithResponse request with arbitrary body returning *CancelorderPutResponse
func (*ClientWithResponses) CancelorderPutWithResponse ¶
func (c *ClientWithResponses) CancelorderPutWithResponse(ctx context.Context, params *CancelorderPutParams, body CancelorderPutJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelorderPutResponse, error)
func (*ClientWithResponses) ExchangeGetWithResponse ¶
func (c *ClientWithResponses) ExchangeGetWithResponse(ctx context.Context, symbol ExchangeGetParamsSymbol, params *ExchangeGetParams, reqEditors ...RequestEditorFn) (*ExchangeGetResponse, error)
ExchangeGetWithResponse request returning *ExchangeGetResponse
func (*ClientWithResponses) GetWalletCashSymbolWithResponse ¶
func (c *ClientWithResponses) GetWalletCashSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletCashSymbolParams, reqEditors ...RequestEditorFn) (*GetWalletCashSymbolResponse, error)
GetWalletCashSymbolWithResponse request returning *GetWalletCashSymbolResponse
func (*ClientWithResponses) GetWalletFutureSymbolWithResponse ¶
func (c *ClientWithResponses) GetWalletFutureSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletFutureSymbolParams, reqEditors ...RequestEditorFn) (*GetWalletFutureSymbolResponse, error)
GetWalletFutureSymbolWithResponse request returning *GetWalletFutureSymbolResponse
func (*ClientWithResponses) GetWalletMarginSymbolWithResponse ¶
func (c *ClientWithResponses) GetWalletMarginSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletMarginSymbolParams, reqEditors ...RequestEditorFn) (*GetWalletMarginSymbolResponse, error)
GetWalletMarginSymbolWithResponse request returning *GetWalletMarginSymbolResponse
func (*ClientWithResponses) GetWalletOptionSymbolWithResponse ¶
func (c *ClientWithResponses) GetWalletOptionSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletOptionSymbolParams, reqEditors ...RequestEditorFn) (*GetWalletOptionSymbolResponse, error)
GetWalletOptionSymbolWithResponse request returning *GetWalletOptionSymbolResponse
func (*ClientWithResponses) MarginpremiumGetWithResponse ¶
func (c *ClientWithResponses) MarginpremiumGetWithResponse(ctx context.Context, symbol string, params *MarginpremiumGetParams, reqEditors ...RequestEditorFn) (*MarginpremiumGetResponse, error)
MarginpremiumGetWithResponse request returning *MarginpremiumGetResponse
func (*ClientWithResponses) OrdersGetWithResponse ¶
func (c *ClientWithResponses) OrdersGetWithResponse(ctx context.Context, params *OrdersGetParams, reqEditors ...RequestEditorFn) (*OrdersGetResponse, error)
OrdersGetWithResponse request returning *OrdersGetResponse
func (*ClientWithResponses) PositionsGetWithResponse ¶
func (c *ClientWithResponses) PositionsGetWithResponse(ctx context.Context, params *PositionsGetParams, reqEditors ...RequestEditorFn) (*PositionsGetResponse, error)
PositionsGetWithResponse request returning *PositionsGetResponse
func (*ClientWithResponses) PrimaryExchangeGetWithResponse ¶
func (c *ClientWithResponses) PrimaryExchangeGetWithResponse(ctx context.Context, symbol string, params *PrimaryExchangeGetParams, reqEditors ...RequestEditorFn) (*PrimaryExchangeGetResponse, error)
PrimaryExchangeGetWithResponse request returning *PrimaryExchangeGetResponse
func (*ClientWithResponses) RankingGetWithResponse ¶
func (c *ClientWithResponses) RankingGetWithResponse(ctx context.Context, params *RankingGetParams, reqEditors ...RequestEditorFn) (*RankingGetResponse, error)
RankingGetWithResponse request returning *RankingGetResponse
func (*ClientWithResponses) RegisterPutWithBodyWithResponse ¶
func (c *ClientWithResponses) RegisterPutWithBodyWithResponse(ctx context.Context, params *RegisterPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterPutResponse, error)
RegisterPutWithBodyWithResponse request with arbitrary body returning *RegisterPutResponse
func (*ClientWithResponses) RegisterPutWithResponse ¶
func (c *ClientWithResponses) RegisterPutWithResponse(ctx context.Context, params *RegisterPutParams, body RegisterPutJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterPutResponse, error)
func (*ClientWithResponses) RegulationsGetWithResponse ¶
func (c *ClientWithResponses) RegulationsGetWithResponse(ctx context.Context, symbol string, params *RegulationsGetParams, reqEditors ...RequestEditorFn) (*RegulationsGetResponse, error)
RegulationsGetWithResponse request returning *RegulationsGetResponse
func (*ClientWithResponses) SendoderFuturePostWithBodyWithResponse ¶
func (c *ClientWithResponses) SendoderFuturePostWithBodyWithResponse(ctx context.Context, params *SendoderFuturePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendoderFuturePostResponse, error)
SendoderFuturePostWithBodyWithResponse request with arbitrary body returning *SendoderFuturePostResponse
func (*ClientWithResponses) SendoderFuturePostWithResponse ¶
func (c *ClientWithResponses) SendoderFuturePostWithResponse(ctx context.Context, params *SendoderFuturePostParams, body SendoderFuturePostJSONRequestBody, reqEditors ...RequestEditorFn) (*SendoderFuturePostResponse, error)
func (*ClientWithResponses) SendorderOptionPostWithBodyWithResponse ¶
func (c *ClientWithResponses) SendorderOptionPostWithBodyWithResponse(ctx context.Context, params *SendorderOptionPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendorderOptionPostResponse, error)
SendorderOptionPostWithBodyWithResponse request with arbitrary body returning *SendorderOptionPostResponse
func (*ClientWithResponses) SendorderOptionPostWithResponse ¶
func (c *ClientWithResponses) SendorderOptionPostWithResponse(ctx context.Context, params *SendorderOptionPostParams, body SendorderOptionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SendorderOptionPostResponse, error)
func (*ClientWithResponses) SendorderPostWithBodyWithResponse ¶
func (c *ClientWithResponses) SendorderPostWithBodyWithResponse(ctx context.Context, params *SendorderPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendorderPostResponse, error)
SendorderPostWithBodyWithResponse request with arbitrary body returning *SendorderPostResponse
func (*ClientWithResponses) SendorderPostWithResponse ¶
func (c *ClientWithResponses) SendorderPostWithResponse(ctx context.Context, params *SendorderPostParams, body SendorderPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SendorderPostResponse, error)
func (*ClientWithResponses) SymbolGetWithResponse ¶
func (c *ClientWithResponses) SymbolGetWithResponse(ctx context.Context, symbol string, params *SymbolGetParams, reqEditors ...RequestEditorFn) (*SymbolGetResponse, error)
SymbolGetWithResponse request returning *SymbolGetResponse
func (*ClientWithResponses) SymbolnameFutureGetWithResponse ¶
func (c *ClientWithResponses) SymbolnameFutureGetWithResponse(ctx context.Context, params *SymbolnameFutureGetParams, reqEditors ...RequestEditorFn) (*SymbolnameFutureGetResponse, error)
SymbolnameFutureGetWithResponse request returning *SymbolnameFutureGetResponse
func (*ClientWithResponses) SymbolnameOptionGetWithResponse ¶
func (c *ClientWithResponses) SymbolnameOptionGetWithResponse(ctx context.Context, params *SymbolnameOptionGetParams, reqEditors ...RequestEditorFn) (*SymbolnameOptionGetResponse, error)
SymbolnameOptionGetWithResponse request returning *SymbolnameOptionGetResponse
func (*ClientWithResponses) TokenPostWithBodyWithResponse ¶
func (c *ClientWithResponses) TokenPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TokenPostResponse, error)
TokenPostWithBodyWithResponse request with arbitrary body returning *TokenPostResponse
func (*ClientWithResponses) TokenPostWithResponse ¶
func (c *ClientWithResponses) TokenPostWithResponse(ctx context.Context, body TokenPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TokenPostResponse, error)
func (*ClientWithResponses) UnregisterAllPutWithResponse ¶
func (c *ClientWithResponses) UnregisterAllPutWithResponse(ctx context.Context, params *UnregisterAllPutParams, reqEditors ...RequestEditorFn) (*UnregisterAllPutResponse, error)
UnregisterAllPutWithResponse request returning *UnregisterAllPutResponse
func (*ClientWithResponses) UnregisterPutWithBodyWithResponse ¶
func (c *ClientWithResponses) UnregisterPutWithBodyWithResponse(ctx context.Context, params *UnregisterPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnregisterPutResponse, error)
UnregisterPutWithBodyWithResponse request with arbitrary body returning *UnregisterPutResponse
func (*ClientWithResponses) UnregisterPutWithResponse ¶
func (c *ClientWithResponses) UnregisterPutWithResponse(ctx context.Context, params *UnregisterPutParams, body UnregisterPutJSONRequestBody, reqEditors ...RequestEditorFn) (*UnregisterPutResponse, error)
func (*ClientWithResponses) WalletCashGetWithResponse ¶
func (c *ClientWithResponses) WalletCashGetWithResponse(ctx context.Context, params *WalletCashGetParams, reqEditors ...RequestEditorFn) (*WalletCashGetResponse, error)
WalletCashGetWithResponse request returning *WalletCashGetResponse
func (*ClientWithResponses) WalletFutureGetWithResponse ¶
func (c *ClientWithResponses) WalletFutureGetWithResponse(ctx context.Context, params *WalletFutureGetParams, reqEditors ...RequestEditorFn) (*WalletFutureGetResponse, error)
WalletFutureGetWithResponse request returning *WalletFutureGetResponse
func (*ClientWithResponses) WalletMarginGetWithResponse ¶
func (c *ClientWithResponses) WalletMarginGetWithResponse(ctx context.Context, params *WalletMarginGetParams, reqEditors ...RequestEditorFn) (*WalletMarginGetResponse, error)
WalletMarginGetWithResponse request returning *WalletMarginGetResponse
func (*ClientWithResponses) WalletOptionGetWithResponse ¶
func (c *ClientWithResponses) WalletOptionGetWithResponse(ctx context.Context, params *WalletOptionGetParams, reqEditors ...RequestEditorFn) (*WalletOptionGetResponse, error)
WalletOptionGetWithResponse request returning *WalletOptionGetResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // ApisoftlimitGet request ApisoftlimitGetWithResponse(ctx context.Context, params *ApisoftlimitGetParams, reqEditors ...RequestEditorFn) (*ApisoftlimitGetResponse, error) // BoardGet request BoardGetWithResponse(ctx context.Context, symbol string, params *BoardGetParams, reqEditors ...RequestEditorFn) (*BoardGetResponse, error) // CancelorderPut request with any body CancelorderPutWithBodyWithResponse(ctx context.Context, params *CancelorderPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelorderPutResponse, error) CancelorderPutWithResponse(ctx context.Context, params *CancelorderPutParams, body CancelorderPutJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelorderPutResponse, error) // ExchangeGet request ExchangeGetWithResponse(ctx context.Context, symbol ExchangeGetParamsSymbol, params *ExchangeGetParams, reqEditors ...RequestEditorFn) (*ExchangeGetResponse, error) MarginpremiumGetWithResponse(ctx context.Context, symbol string, params *MarginpremiumGetParams, reqEditors ...RequestEditorFn) (*MarginpremiumGetResponse, error) // OrdersGet request OrdersGetWithResponse(ctx context.Context, params *OrdersGetParams, reqEditors ...RequestEditorFn) (*OrdersGetResponse, error) // PositionsGet request PositionsGetWithResponse(ctx context.Context, params *PositionsGetParams, reqEditors ...RequestEditorFn) (*PositionsGetResponse, error) // PrimaryExchangeGet request PrimaryExchangeGetWithResponse(ctx context.Context, symbol string, params *PrimaryExchangeGetParams, reqEditors ...RequestEditorFn) (*PrimaryExchangeGetResponse, error) // RankingGet request RankingGetWithResponse(ctx context.Context, params *RankingGetParams, reqEditors ...RequestEditorFn) (*RankingGetResponse, error) // RegisterPut request with any body RegisterPutWithBodyWithResponse(ctx context.Context, params *RegisterPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterPutResponse, error) RegisterPutWithResponse(ctx context.Context, params *RegisterPutParams, body RegisterPutJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterPutResponse, error) // RegulationsGet request RegulationsGetWithResponse(ctx context.Context, symbol string, params *RegulationsGetParams, reqEditors ...RequestEditorFn) (*RegulationsGetResponse, error) // SendorderPost request with any body SendorderPostWithBodyWithResponse(ctx context.Context, params *SendorderPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendorderPostResponse, error) SendorderPostWithResponse(ctx context.Context, params *SendorderPostParams, body SendorderPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SendorderPostResponse, error) // SendoderFuturePost request with any body SendoderFuturePostWithBodyWithResponse(ctx context.Context, params *SendoderFuturePostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendoderFuturePostResponse, error) SendoderFuturePostWithResponse(ctx context.Context, params *SendoderFuturePostParams, body SendoderFuturePostJSONRequestBody, reqEditors ...RequestEditorFn) (*SendoderFuturePostResponse, error) // SendorderOptionPost request with any body SendorderOptionPostWithBodyWithResponse(ctx context.Context, params *SendorderOptionPostParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendorderOptionPostResponse, error) SendorderOptionPostWithResponse(ctx context.Context, params *SendorderOptionPostParams, body SendorderOptionPostJSONRequestBody, reqEditors ...RequestEditorFn) (*SendorderOptionPostResponse, error) // SymbolGet request SymbolGetWithResponse(ctx context.Context, symbol string, params *SymbolGetParams, reqEditors ...RequestEditorFn) (*SymbolGetResponse, error) // SymbolnameFutureGet request SymbolnameFutureGetWithResponse(ctx context.Context, params *SymbolnameFutureGetParams, reqEditors ...RequestEditorFn) (*SymbolnameFutureGetResponse, error) // SymbolnameOptionGet request SymbolnameOptionGetWithResponse(ctx context.Context, params *SymbolnameOptionGetParams, reqEditors ...RequestEditorFn) (*SymbolnameOptionGetResponse, error) // TokenPost request with any body TokenPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TokenPostResponse, error) TokenPostWithResponse(ctx context.Context, body TokenPostJSONRequestBody, reqEditors ...RequestEditorFn) (*TokenPostResponse, error) // UnregisterPut request with any body UnregisterPutWithBodyWithResponse(ctx context.Context, params *UnregisterPutParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnregisterPutResponse, error) UnregisterPutWithResponse(ctx context.Context, params *UnregisterPutParams, body UnregisterPutJSONRequestBody, reqEditors ...RequestEditorFn) (*UnregisterPutResponse, error) // UnregisterAllPut request UnregisterAllPutWithResponse(ctx context.Context, params *UnregisterAllPutParams, reqEditors ...RequestEditorFn) (*UnregisterAllPutResponse, error) // WalletCashGet request WalletCashGetWithResponse(ctx context.Context, params *WalletCashGetParams, reqEditors ...RequestEditorFn) (*WalletCashGetResponse, error) // GetWalletCashSymbol request GetWalletCashSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletCashSymbolParams, reqEditors ...RequestEditorFn) (*GetWalletCashSymbolResponse, error) // WalletFutureGet request WalletFutureGetWithResponse(ctx context.Context, params *WalletFutureGetParams, reqEditors ...RequestEditorFn) (*WalletFutureGetResponse, error) // GetWalletFutureSymbol request GetWalletFutureSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletFutureSymbolParams, reqEditors ...RequestEditorFn) (*GetWalletFutureSymbolResponse, error) // WalletMarginGet request WalletMarginGetWithResponse(ctx context.Context, params *WalletMarginGetParams, reqEditors ...RequestEditorFn) (*WalletMarginGetResponse, error) // GetWalletMarginSymbol request GetWalletMarginSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletMarginSymbolParams, reqEditors ...RequestEditorFn) (*GetWalletMarginSymbolResponse, error) // WalletOptionGet request WalletOptionGetWithResponse(ctx context.Context, params *WalletOptionGetParams, reqEditors ...RequestEditorFn) (*WalletOptionGetResponse, error) // GetWalletOptionSymbol request GetWalletOptionSymbolWithResponse(ctx context.Context, symbol string, params *GetWalletOptionSymbolParams, reqEditors ...RequestEditorFn) (*GetWalletOptionSymbolResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ErrorResponse ¶
type ErrorResponse struct { // Code エラーコード Code *int32 `json:"Code,omitempty"` // Message [エラーメッセージ](../ptal/error.html#message) Message *string `json:"Message,omitempty"` }
ErrorResponse defines model for ErrorResponse.
type ExchangeGetParams ¶
type ExchangeGetParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
ExchangeGetParams defines parameters for ExchangeGet.
type ExchangeGetParamsSymbol ¶
type ExchangeGetParamsSymbol string
ExchangeGetParamsSymbol defines parameters for ExchangeGet.
const ( Audjpy ExchangeGetParamsSymbol = "audjpy" Audusd ExchangeGetParamsSymbol = "audusd" Cadjpy ExchangeGetParamsSymbol = "cadjpy" Chfjpy ExchangeGetParamsSymbol = "chfjpy" Eurjpy ExchangeGetParamsSymbol = "eurjpy" Eurusd ExchangeGetParamsSymbol = "eurusd" Gbpjpy ExchangeGetParamsSymbol = "gbpjpy" Gbpusd ExchangeGetParamsSymbol = "gbpusd" Nzdjpy ExchangeGetParamsSymbol = "nzdjpy" Usdjpy ExchangeGetParamsSymbol = "usdjpy" Zarjpy ExchangeGetParamsSymbol = "zarjpy" )
Defines values for ExchangeGetParamsSymbol.
type ExchangeGetResponse ¶
type ExchangeGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ExchangeResponse JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseExchangeGetResponse ¶
func ParseExchangeGetResponse(rsp *http.Response) (*ExchangeGetResponse, error)
ParseExchangeGetResponse parses an HTTP response from a ExchangeGetWithResponse call
func (ExchangeGetResponse) Status ¶
func (r ExchangeGetResponse) Status() string
Status returns HTTPResponse.Status
func (ExchangeGetResponse) StatusCode ¶
func (r ExchangeGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExchangeResponse ¶
type ExchangeResponse struct { // AskPrice ASK AskPrice *float64 `json:"AskPrice,omitempty"` // BidPrice BID BidPrice *float64 `json:"BidPrice,omitempty"` // Change 前日比 Change *float64 `json:"Change,omitempty"` // Spread SP Spread *float64 `json:"Spread,omitempty"` // Symbol 通貨 Symbol *string `json:"Symbol,omitempty"` // Time 時刻 <br>※HH:mm:ss形式 Time *string `json:"Time,omitempty"` }
ExchangeResponse defines model for ExchangeResponse.
type GetWalletCashSymbolParams ¶
type GetWalletCashSymbolParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
GetWalletCashSymbolParams defines parameters for GetWalletCashSymbol.
type GetWalletCashSymbolResponse ¶
type GetWalletCashSymbolResponse struct { Body []byte HTTPResponse *http.Response JSON200 *WalletCashSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseGetWalletCashSymbolResponse ¶
func ParseGetWalletCashSymbolResponse(rsp *http.Response) (*GetWalletCashSymbolResponse, error)
ParseGetWalletCashSymbolResponse parses an HTTP response from a GetWalletCashSymbolWithResponse call
func (GetWalletCashSymbolResponse) Status ¶
func (r GetWalletCashSymbolResponse) Status() string
Status returns HTTPResponse.Status
func (GetWalletCashSymbolResponse) StatusCode ¶
func (r GetWalletCashSymbolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWalletFutureSymbolParams ¶
type GetWalletFutureSymbolParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
GetWalletFutureSymbolParams defines parameters for GetWalletFutureSymbol.
type GetWalletFutureSymbolResponse ¶
type GetWalletFutureSymbolResponse struct { Body []byte HTTPResponse *http.Response JSON200 *WalletFutureSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseGetWalletFutureSymbolResponse ¶
func ParseGetWalletFutureSymbolResponse(rsp *http.Response) (*GetWalletFutureSymbolResponse, error)
ParseGetWalletFutureSymbolResponse parses an HTTP response from a GetWalletFutureSymbolWithResponse call
func (GetWalletFutureSymbolResponse) Status ¶
func (r GetWalletFutureSymbolResponse) Status() string
Status returns HTTPResponse.Status
func (GetWalletFutureSymbolResponse) StatusCode ¶
func (r GetWalletFutureSymbolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWalletMarginSymbolParams ¶
type GetWalletMarginSymbolParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
GetWalletMarginSymbolParams defines parameters for GetWalletMarginSymbol.
type GetWalletMarginSymbolResponse ¶
type GetWalletMarginSymbolResponse struct { Body []byte HTTPResponse *http.Response JSON200 *WalletMarginSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseGetWalletMarginSymbolResponse ¶
func ParseGetWalletMarginSymbolResponse(rsp *http.Response) (*GetWalletMarginSymbolResponse, error)
ParseGetWalletMarginSymbolResponse parses an HTTP response from a GetWalletMarginSymbolWithResponse call
func (GetWalletMarginSymbolResponse) Status ¶
func (r GetWalletMarginSymbolResponse) Status() string
Status returns HTTPResponse.Status
func (GetWalletMarginSymbolResponse) StatusCode ¶
func (r GetWalletMarginSymbolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWalletOptionSymbolParams ¶
type GetWalletOptionSymbolParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
GetWalletOptionSymbolParams defines parameters for GetWalletOptionSymbol.
type GetWalletOptionSymbolResponse ¶
type GetWalletOptionSymbolResponse struct { Body []byte HTTPResponse *http.Response JSON200 *WalletOptionSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseGetWalletOptionSymbolResponse ¶
func ParseGetWalletOptionSymbolResponse(rsp *http.Response) (*GetWalletOptionSymbolResponse, error)
ParseGetWalletOptionSymbolResponse parses an HTTP response from a GetWalletOptionSymbolWithResponse call
func (GetWalletOptionSymbolResponse) Status ¶
func (r GetWalletOptionSymbolResponse) Status() string
Status returns HTTPResponse.Status
func (GetWalletOptionSymbolResponse) StatusCode ¶
func (r GetWalletOptionSymbolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type MarginPremiumResponse ¶
type MarginPremiumResponse struct { // DayTrade 一般信用(デイトレ) DayTrade *struct { // LowerMarginPremium 下限プレミアム料<br> // ※プレミアム料がない場合は、nullを返します。 LowerMarginPremium *float64 `json:"LowerMarginPremium,omitempty"` // MarginPremium 確定プレミアム料<br> // ※入札銘柄の場合、入札受付中は随時更新します。受付時間外は、確定したプレミアム料を返します。<br> // ※非入札銘柄の場合、常に固定値を返します。<br> // ※信用取引不可の場合、nullを返します。<br> // ※19:30~翌営業日のプレミアム料になります。 MarginPremium *float64 `json:"MarginPremium,omitempty"` // MarginPremiumType プレミアム料入力区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>null</td> // <td>一般信用(デイトレ)非対応銘柄</td> // </tr> // <tr> // <td>0</td> // <td>プレミアム料がない銘柄</td> // </tr> // <tr> // <td>1</td> // <td>プレミアム料が固定の銘柄</td> // </tr> // <tr> // <td>2</td> // <td>プレミアム料が入札で決定する銘柄</td> // </tr> // </tbody> // </table> MarginPremiumType *int32 `json:"MarginPremiumType,omitempty"` // TickMarginPremium プレミアム料刻値<br> // ※入札可能銘柄以外は、nullを返します。 TickMarginPremium *float64 `json:"TickMarginPremium,omitempty"` // UpperMarginPremium 上限プレミアム料<br> // ※プレミアム料がない場合は、nullを返します。 UpperMarginPremium *float64 `json:"UpperMarginPremium,omitempty"` } `json:"DayTrade,omitempty"` // GeneralMargin 一般信用(長期) GeneralMargin *struct { // LowerMarginPremium 下限プレミアム料<br> // ※プレミアム料がない場合は、nullを返します。 LowerMarginPremium *float64 `json:"LowerMarginPremium,omitempty"` // MarginPremium 確定プレミアム料<br> // ※入札銘柄の場合、入札受付中は随時更新します。受付時間外は、確定したプレミアム料を返します。<br> // ※非入札銘柄の場合、常に固定値を返します。<br> // ※信用取引不可の場合、nullを返します。<br> // ※19:30~翌営業日のプレミアム料になります。 MarginPremium *float64 `json:"MarginPremium,omitempty"` // MarginPremiumType プレミアム料入力区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>null</td> // <td>一般信用(長期)非対応銘柄</td> // </tr> // <tr> // <td>0</td> // <td>プレミアム料がない銘柄</td> // </tr> // <tr> // <td>1</td> // <td>プレミアム料が固定の銘柄</td> // </tr> // <tr> // <td>2</td> // <td>プレミアム料が入札で決定する銘柄</td> // </tr> // </tbody> // </table> MarginPremiumType *int32 `json:"MarginPremiumType,omitempty"` // TickMarginPremium プレミアム料刻値<br> // ※入札可能銘柄以外は、nullを返します。 TickMarginPremium *float64 `json:"TickMarginPremium,omitempty"` // UpperMarginPremium 上限プレミアム料<br> // ※プレミアム料がない場合は、nullを返します。 UpperMarginPremium *float64 `json:"UpperMarginPremium,omitempty"` } `json:"GeneralMargin,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` }
MarginPremiumResponse defines model for MarginPremiumResponse.
type MarginpremiumGetParams ¶
type MarginpremiumGetParams struct { string `json:"X-API-KEY"` }XAPIKEY
MarginpremiumGetParams defines parameters for MarginpremiumGet.
type MarginpremiumGetResponse ¶
type MarginpremiumGetResponse struct {}
func ParseMarginpremiumGetResponse ¶
func ParseMarginpremiumGetResponse(rsp *http.Response) (*MarginpremiumGetResponse, error)
ParseMarginpremiumGetResponse parses an HTTP response from a MarginpremiumGetWithResponse call
func (MarginpremiumGetResponse) Status ¶
func (r MarginpremiumGetResponse) Status() string
Status returns HTTPResponse.Status
func (MarginpremiumGetResponse) StatusCode ¶
func (r MarginpremiumGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OrderSuccess ¶
type OrderSuccess struct { // OrderId 受付注文番号 OrderId *string `json:"OrderId,omitempty"` // Result 結果コード<br>0が成功。それ以外はエラーコード。 Result *int32 `json:"Result,omitempty"` }
OrderSuccess defines model for OrderSuccess.
type OrdersGetParams ¶
type OrdersGetParams struct { // Product 取得する商品 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>すべて </td> // </tr> // <tr> // <td>1</td> // <td>現物</td> // </tr> // <tr> // <td>2</td> // <td>信用</td> // </tr> // <tr> // <td>3</td> // <td>先物</td> // </tr> // <tr> // <td>4</td> // <td>OP</td> // </tr> // </tbody> // </table> Product *OrdersGetParamsProduct `form:"product,omitempty" json:"product,omitempty"` // Id 注文番号<br> // ※指定された注文番号と一致する注文のみレスポンスします。<br> // ※指定された注文番号との比較では大文字小文字を区別しません。<br> // ※複数の注文番号を指定することはできません。 Id *string `form:"id,omitempty" json:"id,omitempty"` // Updtime 更新日時<br> // ※形式:yyyyMMddHHmmss (例:20201201123456)<br> // ※指定された更新日時以降(指定日時含む)に更新された注文のみレスポンスします。<br> // ※複数の更新日時を指定することはできません。 Updtime *string `form:"updtime,omitempty" json:"updtime,omitempty"` // Details 注文詳細抑止 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>true</td> // <td>注文詳細を出力する(デフォルト)</td> // </tr> // <tr> // <td>false</td> // <td>注文詳細の出力しない</td> // </tr> // </tbody> // </table> Details *string `form:"details,omitempty" json:"details,omitempty"` // Symbol 銘柄コード<br>※指定された銘柄コードと一致する注文のみレスポンスします。<br>※複数の銘柄コードを指定することができません。 Symbol *string `form:"symbol,omitempty" json:"symbol,omitempty"` // State 状態<br> // ※指定された状態と一致する注文のみレスポンスします。<br> // ※フィルタには数字の入力のみ受け付けます。<br> // ※複数の状態を指定することはできません。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>待機(発注待機)</td> // </tr> // <tr> // <td>2</td> // <td>処理中(発注送信中)</td> // </tr> // <tr> // <td>3</td> // <td>処理済(発注済・訂正済)</td> // </tr> // <tr> // <td>4</td> // <td>訂正取消送信中</td> // </tr> // <tr> // <td>5</td> // <td>終了(発注エラー・取消済・全約定・失効・期限切れ)</td> // </tr> // </tbody> // </table> State *OrdersGetParamsState `form:"state,omitempty" json:"state,omitempty"` // Side 売買区分<br> // ※指定された売買区分と一致する注文のみレスポンスします。<br> // ※フィルタには数字の入力のみ受け付けます。<br> // ※複数の売買区分を指定することができません。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>売</td> // </tr> // <tr> // <td>2</td> // <td>買</td> // </tr> // </tbody> // </table> Side *OrdersGetParamsSide `form:"side,omitempty" json:"side,omitempty"` // Cashmargin 取引区分<br> // ※指定された取引区分と一致する注文のみレスポンスします。<br> // ※フィルタには数字の入力のみ受け付けます。<br> // ※複数の取引区分を指定することができません。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>2</td> // <td>新規</td> // </tr> // <tr> // <td>3</td> // <td>返済</td> // </tr> // </tbody> // </table> Cashmargin *OrdersGetParamsCashmargin `form:"cashmargin,omitempty" json:"cashmargin,omitempty"` // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
OrdersGetParams defines parameters for OrdersGet.
type OrdersGetParamsCashmargin ¶
type OrdersGetParamsCashmargin string
OrdersGetParamsCashmargin defines parameters for OrdersGet.
const ( OrdersGetParamsCashmarginN2 OrdersGetParamsCashmargin = "2" OrdersGetParamsCashmarginN3 OrdersGetParamsCashmargin = "3" )
Defines values for OrdersGetParamsCashmargin.
type OrdersGetParamsProduct ¶
type OrdersGetParamsProduct string
OrdersGetParamsProduct defines parameters for OrdersGet.
const ( OrdersGetParamsProductN0 OrdersGetParamsProduct = "0" OrdersGetParamsProductN1 OrdersGetParamsProduct = "1" OrdersGetParamsProductN2 OrdersGetParamsProduct = "2" OrdersGetParamsProductN3 OrdersGetParamsProduct = "3" OrdersGetParamsProductN4 OrdersGetParamsProduct = "4" )
Defines values for OrdersGetParamsProduct.
type OrdersGetParamsSide ¶
type OrdersGetParamsSide string
OrdersGetParamsSide defines parameters for OrdersGet.
const ( OrdersGetParamsSideN1 OrdersGetParamsSide = "1" OrdersGetParamsSideN2 OrdersGetParamsSide = "2" )
Defines values for OrdersGetParamsSide.
type OrdersGetParamsState ¶
type OrdersGetParamsState string
OrdersGetParamsState defines parameters for OrdersGet.
const ( OrdersGetParamsStateN1 OrdersGetParamsState = "1" OrdersGetParamsStateN2 OrdersGetParamsState = "2" OrdersGetParamsStateN3 OrdersGetParamsState = "3" OrdersGetParamsStateN4 OrdersGetParamsState = "4" OrdersGetParamsStateN5 OrdersGetParamsState = "5" )
Defines values for OrdersGetParamsState.
type OrdersGetResponse ¶
type OrdersGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]OrdersSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseOrdersGetResponse ¶
func ParseOrdersGetResponse(rsp *http.Response) (*OrdersGetResponse, error)
ParseOrdersGetResponse parses an HTTP response from a OrdersGetWithResponse call
func (OrdersGetResponse) Status ¶
func (r OrdersGetResponse) Status() string
Status returns HTTPResponse.Status
func (OrdersGetResponse) StatusCode ¶
func (r OrdersGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OrdersSuccess ¶
type OrdersSuccess struct { // AccountType 口座種別 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>2</td> // <td>一般</td> // </tr> // <tr> // <td>4</td> // <td>特定</td> // </tr> // <tr> // <td>12</td> // <td>法人</td> // </tr> // </tbody> // </table> AccountType *int32 `json:"AccountType,omitempty"` // CashMargin 取引区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>2</td> // <td>新規</td> // </tr> // <tr> // <td>3</td> // <td>返済</td> // </tr> // </tbody> // </table> CashMargin *int32 `json:"CashMargin,omitempty"` // CumQty 約定数量 CumQty *float64 `json:"CumQty,omitempty"` // DelivType 受渡区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>自動振替</td> // </tr> // <tr> // <td>2</td> // <td>お預り金</td> // </tr> // </tbody> // </table> DelivType *int32 `json:"DelivType,omitempty"` // Details 注文詳細 Details *[]struct { // Commission 手数料<br>※注文詳細の明細種別が約定(RecType=8)の場合に設定。 Commission *float64 `json:"Commission,omitempty"` // CommissionTax 手数料消費税<br>※明細種別は約定(RecType=8)の場合にのみ表示されます。 CommissionTax *float64 `json:"CommissionTax,omitempty"` // DelivDay 受渡日 DelivDay *int32 `json:"DelivDay,omitempty"` // ExchangeID 取引所番号 ExchangeID *string `json:"ExchangeID,omitempty"` // ExecutionDay 約定日時 ExecutionDay *time.Time `json:"ExecutionDay,omitempty"` // ExecutionID 約定番号 ExecutionID *string `json:"ExecutionID,omitempty"` // ID 注文詳細番号 ID *string `json:"ID,omitempty"` // OrdType 執行条件 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>ザラバ</td> // </tr> // <tr> // <td>2</td> // <td>寄り</td> // </tr> // <tr> // <td>3</td> // <td>引け</td> // </tr> // <tr> // <td>4</td> // <td>不成</td> // </tr> // <tr> // <td>5</td> // <td>対当指値</td> // </tr> // <tr> // <td>6</td> // <td>IOC</td> // </tr> // </tbody> // </table> OrdType *int32 `json:"OrdType,omitempty"` // Price 値段 Price *float64 `json:"Price,omitempty"` // Qty 数量 Qty *float64 `json:"Qty,omitempty"` // RecType 明細種別 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>受付</td> // </tr> // <tr> // <td>2</td> // <td>繰越</td> // </tr> // <tr> // <td>3</td> // <td>期限切れ</td> // </tr> // <tr> // <td>4</td> // <td>発注</td> // </tr> // <tr> // <td>5</td> // <td>訂正</td> // </tr> // <tr> // <td>6</td> // <td>取消</td> // </tr> // <tr> // <td>7</td> // <td>失効</td> // </tr> // <tr> // <td>8</td> // <td>約定</td> // </tr> // </tbody> // </table> RecType *int32 `json:"RecType,omitempty"` // SeqNum ※注文明細レコードの生成順序です。<br>※通番であるとは限りませんが、大小による順序は保たれています。 SeqNum *int32 `json:"SeqNum,omitempty"` // State 状態 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>待機(発注待機)</td> // </tr> // <tr> // <td>2</td> // <td>処理中(発注送信中・訂正送信中・取消送信中)</td> // </tr> // <tr> // <td>3</td> // <td>処理済(発注済・訂正済・取消済・全約定・期限切れ)</td> // </tr> // <tr> // <td>4</td> // <td>エラー</td> // </tr> // <tr> // <td>5</td> // <td>削除済み</td> // </tr> // </tbody> // </table> State *int32 `json:"State,omitempty"` // TransactTime 処理時刻 TransactTime *string `json:"TransactTime,omitempty"` } `json:"Details,omitempty"` // Exchange 市場コード // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>東証</td> // </tr> // <tr> // <td>3</td> // <td>名証</td> // </tr> // <tr> // <td>5</td> // <td>福証</td> // </tr> // <tr> // <td>6</td> // <td>札証</td> // </tr> // <tr> // <td>9</td> // <td>SOR</td> // </tr> // <tr> // <td>2</td> // <td>日通し</td> // </tr> // <tr> // <td>23</td> // <td>日中</td> // </tr> // <tr> // <td>24</td> // <td>夜間</td> // </tr> // </tbody> // </table> Exchange *int32 `json:"Exchange,omitempty"` // ExchangeName 市場名 ExchangeName *string `json:"ExchangeName,omitempty"` // ExpireDay 注文有効期限<br>yyyyMMdd形式 ExpireDay *int32 `json:"ExpireDay,omitempty"` // ID 注文番号 ID *string `json:"ID,omitempty"` // MarginPremium プレミアム料<br> // ※(注文中数量+約定済数量)×1株あたりプレミアム料として計算されます。<br> // ※信用を注文した際に表示されます。<br> // ※制度信用売/買、一般(長期)買、一般(デイトレ)買の場合は、Noneと返されます。<br> // 一般(長期)売、一般(デイトレ)売の場合は、プレミアム料=0の場合、0(ゼロ)と返されます。 MarginPremium *float64 `json:"MarginPremium,omitempty"` // MarginTradeType 信用取引区分<br> // ※信用を注文した際に表示されます。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>制度信用</td> // </tr> // <tr> // <td>2</td> // <td>一般信用(長期)</td> // </tr> // <tr> // <td>3</td> // <td>一般信用(デイトレ)</td> // </tr> // </tbody> // </table> MarginTradeType *int32 `json:"MarginTradeType,omitempty"` // OrdType 執行条件 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>ザラバ</td> // </tr> // <tr> // <td>2</td> // <td>寄り</td> // </tr> // <tr> // <td>3</td> // <td>引け</td> // </tr> // <tr> // <td>4</td> // <td>不成</td> // </tr> // <tr> // <td>5</td> // <td>対当指値</td> // </tr> // <tr> // <td>6</td> // <td>IOC</td> // </tr> // </tbody> // </table> OrdType *int32 `json:"OrdType,omitempty"` // OrderQty 発注数量<br> // ※注文期限切れと失効の場合、OrderQtyはゼロになりません。<br> // ※期限切れと失効の確認方法としては、DetailsのRecType(3: 期限切れ、7: 失効)にてご確認ください。 OrderQty *float64 `json:"OrderQty,omitempty"` // OrderState 注文状態 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>待機(発注待機)</td> // </tr> // <tr> // <td>2</td> // <td>処理中(発注送信中)</td> // </tr> // <tr> // <td>3</td> // <td>処理済(発注済・訂正済)</td> // </tr> // <tr> // <td>4</td> // <td>訂正取消送信中</td> // </tr> // <tr> // <td>5</td> // <td>終了(発注エラー・取消済・全約定・失効・期限切れ)</td> // </tr> // </tbody> // </table> OrderState *int32 `json:"OrderState,omitempty"` // Price 値段 Price *float64 `json:"Price,omitempty"` // RecvTime 受注日時 RecvTime *string `json:"RecvTime,omitempty"` // Side 売買区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>売</td> // </tr> // <tr> // <td>2</td> // <td>買</td> // </tr> // </tbody> // </table> Side *string `json:"Side,omitempty"` // State 状態 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>待機(発注待機)</td> // </tr> // <tr> // <td>2</td> // <td>処理中(発注送信中)</td> // </tr> // <tr> // <td>3</td> // <td>処理済(発注済・訂正済)</td> // </tr> // <tr> // <td>4</td> // <td>訂正取消送信中</td> // </tr> // <tr> // <td>5</td> // <td>終了(発注エラー・取消済・全約定・失効・期限切れ)</td> // </tr> // </tbody> // </table> State *int32 `json:"State,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` // SymbolName 銘柄名 SymbolName *string `json:"SymbolName,omitempty"` // TimeInForce 有効期間条件<br>※先物・オプション銘柄の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>FAS</td> // </tr> // <tr> // <td>2</td> // <td>FAK</td> // </tr> // <tr> // <td>3</td> // <td>FOK</td> // </tr> // </tbody> // </table> TimeInForce *int32 `json:"TimeInForce,omitempty"` }
OrdersSuccess defines model for OrdersSuccess.
type Positions ¶
type Positions struct { // HoldID 返済建玉ID HoldID *string `json:"HoldID,omitempty"` // Qty 返済建玉数量 Qty *int32 `json:"Qty,omitempty"` }
Positions defines model for Positions.
type PositionsDeriv ¶
type PositionsDeriv struct { // HoldID 返済建玉ID HoldID *string `json:"HoldID,omitempty"` // Qty 返済建玉数量 Qty *int32 `json:"Qty,omitempty"` }
PositionsDeriv defines model for PositionsDeriv.
type PositionsGetParams ¶
type PositionsGetParams struct { // Product 取得する商品 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>すべて</td> // </tr> // <tr> // <td>1</td> // <td>現物</td> // </tr> // <tr> // <td>2</td> // <td>信用</td> // </tr> // <tr> // <td>3</td> // <td>先物</td> // </tr> // <tr> // <td>4</td> // <td>OP</td> // </tr> // </tbody> // </table> Product *PositionsGetParamsProduct `form:"product,omitempty" json:"product,omitempty"` // Symbol 銘柄コード<br>※指定された銘柄コードと一致するポジションのみレスポンスします。<br>※複数の銘柄コードを指定することはできません。 Symbol *string `form:"symbol,omitempty" json:"symbol,omitempty"` // Side 売買区分フィルタ<br> // 指定された売買区分と一致する注文を返す // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>売</td> // </tr> // <tr> // <td>2</td> // <td>買</td> // </tr> // </tbody> // </table> Side *PositionsGetParamsSide `form:"side,omitempty" json:"side,omitempty"` // Addinfo 追加情報出力フラグ(未指定時:true)<br> // ※追加情報は、「現在値」、「評価金額」、「評価損益額」、「評価損益率」を意味します。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>true</td> // <td>追加情報を出力する</td> // </tr> // <tr> // <td>false</td> // <td>追加情報を出力しない</td> // </tr> // </tbody> // </table> Addinfo *string `form:"addinfo,omitempty" json:"addinfo,omitempty"` // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
PositionsGetParams defines parameters for PositionsGet.
type PositionsGetParamsProduct ¶
type PositionsGetParamsProduct string
PositionsGetParamsProduct defines parameters for PositionsGet.
const ( PositionsGetParamsProductN0 PositionsGetParamsProduct = "0" PositionsGetParamsProductN1 PositionsGetParamsProduct = "1" PositionsGetParamsProductN2 PositionsGetParamsProduct = "2" PositionsGetParamsProductN3 PositionsGetParamsProduct = "3" PositionsGetParamsProductN4 PositionsGetParamsProduct = "4" )
Defines values for PositionsGetParamsProduct.
type PositionsGetParamsSide ¶
type PositionsGetParamsSide string
PositionsGetParamsSide defines parameters for PositionsGet.
const ( PositionsGetParamsSideN1 PositionsGetParamsSide = "1" PositionsGetParamsSideN2 PositionsGetParamsSide = "2" )
Defines values for PositionsGetParamsSide.
type PositionsGetResponse ¶
type PositionsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]PositionsSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParsePositionsGetResponse ¶
func ParsePositionsGetResponse(rsp *http.Response) (*PositionsGetResponse, error)
ParsePositionsGetResponse parses an HTTP response from a PositionsGetWithResponse call
func (PositionsGetResponse) Status ¶
func (r PositionsGetResponse) Status() string
Status returns HTTPResponse.Status
func (PositionsGetResponse) StatusCode ¶
func (r PositionsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PositionsSuccess ¶
type PositionsSuccess struct { // AccountType 口座種別 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>2</td> // <td>一般</td> // </tr> // <tr> // <td>4</td> // <td>特定</td> // </tr> // <tr> // <td>12</td> // <td>法人</td> // </tr> // </tbody> // </table> AccountType *int32 `json:"AccountType,omitempty"` // Commission 手数料<br>※信用・先物・オプションの場合のみ Commission *float64 `json:"Commission,omitempty"` // CommissionTax 手数料消費税<br>※信用・先物・オプションの場合のみ CommissionTax *float64 `json:"CommissionTax,omitempty"` // CurrentPrice 現在値<br>追加情報出力フラグ:falseの場合、null CurrentPrice *float64 `json:"CurrentPrice,omitempty"` // Exchange 市場コード // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>東証</td> // </tr> // <tr> // <td>3</td> // <td>名証</td> // </tr> // <tr> // <td>5</td> // <td>福証</td> // </tr> // <tr> // <td>6</td> // <td>札証</td> // </tr> // <tr> // <td>2</td> // <td>日通し</td> // </tr> // <tr> // <td>23</td> // <td>日中</td> // </tr> // <tr> // <td>24</td> // <td>夜間</td> // </tr> // </tbody> // </table> Exchange *int32 `json:"Exchange,omitempty"` // ExchangeName 市場名 ExchangeName *string `json:"ExchangeName,omitempty"` // ExecutionDay 約定日(建玉日)<br>※信用・先物・オプションの場合のみ<br>※現物取引では、nullが返ります。 ExecutionDay *int32 `json:"ExecutionDay,omitempty"` // ExecutionID 約定番号<br>※現物取引では、nullが返ります。 ExecutionID *string `json:"ExecutionID,omitempty"` // Expenses 諸経費<br>※信用・先物・オプションの場合のみ Expenses *float64 `json:"Expenses,omitempty"` // ExpireDay 返済期日<br>※信用・先物・オプションの場合のみ ExpireDay *int32 `json:"ExpireDay,omitempty"` // HoldQty 拘束数量(返済のために拘束されている数量) HoldQty *float64 `json:"HoldQty,omitempty"` // LeavesQty 残数量(保有数量) LeavesQty *float64 `json:"LeavesQty,omitempty"` // MarginTradeType 信用取引区分<br>※信用の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>制度信用</td> // </tr> // <tr> // <td>2</td> // <td>一般信用(長期)</td> // </tr> // <tr> // <td>3</td> // <td>一般信用(デイトレ)</td> // </tr> // </tbody> // </table> MarginTradeType *int32 `json:"MarginTradeType,omitempty"` // Price 値段 Price *float64 `json:"Price,omitempty"` // ProfitLoss 評価損益額<br>追加情報出力フラグ:falseの場合、null ProfitLoss *float64 `json:"ProfitLoss,omitempty"` // ProfitLossRate 評価損益率<br>追加情報出力フラグ:falseの場合、null ProfitLossRate *float64 `json:"ProfitLossRate,omitempty"` // SecurityType 銘柄種別<br>※先物・オプション銘柄の場合のみ SecurityType *int32 `json:"SecurityType,omitempty"` // Side 売買区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>売</td> // </tr> // <tr> // <td>2</td> // <td>買</td> // </tr> // </tbody> // </table> Side *string `json:"Side,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` // SymbolName 銘柄名 SymbolName *string `json:"SymbolName,omitempty"` // Valuation 評価金額<br>追加情報出力フラグ:falseの場合、null Valuation *float64 `json:"Valuation,omitempty"` }
PositionsSuccess defines model for PositionsSuccess.
type PrimaryExchangeGetParams ¶
type PrimaryExchangeGetParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
PrimaryExchangeGetParams defines parameters for PrimaryExchangeGet.
type PrimaryExchangeGetResponse ¶
type PrimaryExchangeGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *PrimaryExchangeResponse JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParsePrimaryExchangeGetResponse ¶
func ParsePrimaryExchangeGetResponse(rsp *http.Response) (*PrimaryExchangeGetResponse, error)
ParsePrimaryExchangeGetResponse parses an HTTP response from a PrimaryExchangeGetWithResponse call
func (PrimaryExchangeGetResponse) Status ¶
func (r PrimaryExchangeGetResponse) Status() string
Status returns HTTPResponse.Status
func (PrimaryExchangeGetResponse) StatusCode ¶
func (r PrimaryExchangeGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PrimaryExchangeResponse ¶
type PrimaryExchangeResponse struct { // PrimaryExchange 優先市場 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>東証</td> // </tr> // <tr> // <td>3</td> // <td>名証</td> // </tr> // <tr> // <td>5</td> // <td>福証</td> // </tr> // <tr> // <td>6</td> // <td>札証</td> // </tr> // </tbody> // </table> PrimaryExchange *int32 `json:"PrimaryExchange,omitempty"` // Symbol 銘柄コード<br>※対象商品は、株式のみ Symbol *string `json:"Symbol,omitempty"` }
PrimaryExchangeResponse defines model for PrimaryExchangeResponse.
type RankingByCategoryResponse ¶
type RankingByCategoryResponse struct { // ExchangeDivision 市場 ExchangeDivision *string `json:"ExchangeDivision,omitempty"` // Ranking ランキング Ranking *[]struct { // AverageRanking 平均順位<br>※100位以下は「999」となります AverageRanking *float64 `json:"AverageRanking,omitempty"` // Category 業種コード Category *string `json:"Category,omitempty"` // CategoryName 業種名 CategoryName *string `json:"CategoryName,omitempty"` // ChangePercentage 騰落率(%) ChangePercentage *float64 `json:"ChangePercentage,omitempty"` // ChangeRatio 前日比 ChangeRatio *float64 `json:"ChangeRatio,omitempty"` // CurrentPrice 現在値 CurrentPrice *float64 `json:"CurrentPrice,omitempty"` // CurrentPriceTime 時刻<br>HH:mm<br>※日付は返しません CurrentPriceTime *string `json:"CurrentPriceTime,omitempty"` // No 順位<br>※ランキング内で同じ順位が返却される場合があります(10位が2件など) No *int32 `json:"No,omitempty"` // Trend トレンド // <table> // <thead> // <tr> // <th>定義値</th> // <th>内容</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>対象データ無し</td> // </tr> // <tr> // <td>1</td> // <td>過去10営業日より20位以上上昇</td> // </tr> // <tr> // <td>2</td> // <td>過去10営業日より1~19位上昇</td> // </tr> // <tr> // <td>3</td> // <td>過去10営業日と変わらず</td> // </tr> // <tr> // <td>4</td> // <td>過去10営業日より1~19位下落</td> // </tr> // <tr> // <td>5</td> // <td>過去10営業日より20位以上下落</td> // </tr> // </tbody> // </table> Trend *string `json:"Trend,omitempty"` } `json:"Ranking,omitempty"` // Type 種別<br> ※業種別値上がり率、業種別値下がり率の場合、市場は「null」になります Type *string `json:"Type,omitempty"` }
RankingByCategoryResponse defines model for RankingByCategoryResponse.
type RankingByMarginResponse ¶
type RankingByMarginResponse struct { // ExchangeDivision 市場 ExchangeDivision *string `json:"ExchangeDivision,omitempty"` // Ranking ランキング Ranking *[]struct { // BuyLastWeekRatio 買残前週比 BuyLastWeekRatio *float64 `json:"BuyLastWeekRatio,omitempty"` // BuyRapidPaymentPercentage 買残(千株) BuyRapidPaymentPercentage *float64 `json:"BuyRapidPaymentPercentage,omitempty"` // CategoryName 業種名 CategoryName *string `json:"CategoryName,omitempty"` // ExchangeName 市場名 ExchangeName *string `json:"ExchangeName,omitempty"` // No 順位<br>※ランキング内で同じ順位が返却される場合があります(10位が2件など) No *int32 `json:"No,omitempty"` // Ratio 倍率 Ratio *float64 `json:"Ratio,omitempty"` // SellLastWeekRatio 売残前週比 SellLastWeekRatio *float64 `json:"SellLastWeekRatio,omitempty"` // SellRapidPaymentPercentage 売残(千株) SellRapidPaymentPercentage *float64 `json:"SellRapidPaymentPercentage,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` // SymbolName 銘柄名称 SymbolName *string `json:"SymbolName,omitempty"` } `json:"Ranking,omitempty"` // Type 種別 Type *string `json:"Type,omitempty"` }
RankingByMarginResponse defines model for RankingByMarginResponse.
type RankingByTickCountResponse ¶
type RankingByTickCountResponse struct { // ExchangeDivision 市場 ExchangeDivision *string `json:"ExchangeDivision,omitempty"` // Ranking ランキング Ranking *[]struct { // AverageRanking 平均順位<br>※100位以下は「999」となります AverageRanking *float64 `json:"AverageRanking,omitempty"` // CategoryName 業種名 CategoryName *string `json:"CategoryName,omitempty"` // ChangePercentage 騰落率(%) ChangePercentage *float64 `json:"ChangePercentage,omitempty"` // ChangeRatio 前日比 ChangeRatio *float64 `json:"ChangeRatio,omitempty"` // CurrentPrice 現在値 CurrentPrice *float64 `json:"CurrentPrice,omitempty"` // DownCount DOWN DownCount *int32 `json:"DownCount,omitempty"` // ExchangeName 市場名 ExchangeName *string `json:"ExchangeName,omitempty"` // No 順位<br>※ランキング内で同じ順位が返却される場合があります(10位が2件など) No *int32 `json:"No,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` // SymbolName 銘柄名称 SymbolName *string `json:"SymbolName,omitempty"` // TickCount TICK回数 TickCount *int32 `json:"TickCount,omitempty"` // TradingVolume 売買高<br>売買高を千株単位で表示する<br>※百株の位を四捨五入 TradingVolume *float64 `json:"TradingVolume,omitempty"` // Trend トレンド // <table> // <thead> // <tr> // <th>定義値</th> // <th>内容</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>対象データ無し</td> // </tr> // <tr> // <td>1</td> // <td>過去10営業日より20位以上上昇</td> // </tr> // <tr> // <td>2</td> // <td>過去10営業日より1~19位上昇</td> // </tr> // <tr> // <td>3</td> // <td>過去10営業日と変わらず</td> // </tr> // <tr> // <td>4</td> // <td>過去10営業日より1~19位下落</td> // </tr> // <tr> // <td>5</td> // <td>過去10営業日より20位以上下落</td> // </tr> // </tbody> // </table> Trend *string `json:"Trend,omitempty"` // Turnover 売買代金<br>売買代金を百万円単位で表示する<br>※十万円の位を四捨五入 Turnover *float64 `json:"Turnover,omitempty"` // UpCount UP UpCount *int32 `json:"UpCount,omitempty"` } `json:"Ranking,omitempty"` // Type 種別 Type *string `json:"Type,omitempty"` }
RankingByTickCountResponse defines model for RankingByTickCountResponse.
type RankingByTradeValueResponse ¶
type RankingByTradeValueResponse struct { // ExchangeDivision 市場 ExchangeDivision *string `json:"ExchangeDivision,omitempty"` // Ranking ランキング Ranking *[]struct { // AverageRanking 平均順位<br>※100位以下は「999」となります AverageRanking *float64 `json:"AverageRanking,omitempty"` // CategoryName 業種名 CategoryName *string `json:"CategoryName,omitempty"` // ChangePercentage 騰落率(%) ChangePercentage *float64 `json:"ChangePercentage,omitempty"` // ChangeRatio 前日比 ChangeRatio *float64 `json:"ChangeRatio,omitempty"` // CurrentPrice 現在値 CurrentPrice *float64 `json:"CurrentPrice,omitempty"` // CurrentPriceTime 時刻<br>HH:mm<br>※日付は返しません CurrentPriceTime *string `json:"CurrentPriceTime,omitempty"` // ExchangeName 市場名 ExchangeName *string `json:"ExchangeName,omitempty"` // No 順位<br>※ランキング内で同じ順位が返却される場合があります(10位が2件など) No *int32 `json:"No,omitempty"` // RapidPaymentPercentage 代金急増(%) RapidPaymentPercentage *float64 `json:"RapidPaymentPercentage,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` // SymbolName 銘柄名称 SymbolName *string `json:"SymbolName,omitempty"` // Trend トレンド // <table> // <thead> // <tr> // <th>定義値</th> // <th>内容</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>対象データ無し</td> // </tr> // <tr> // <td>1</td> // <td>過去10営業日より20位以上上昇</td> // </tr> // <tr> // <td>2</td> // <td>過去10営業日より1~19位上昇</td> // </tr> // <tr> // <td>3</td> // <td>過去10営業日と変わらず</td> // </tr> // <tr> // <td>4</td> // <td>過去10営業日より1~19位下落</td> // </tr> // <tr> // <td>5</td> // <td>過去10営業日より20位以上下落</td> // </tr> // </tbody> // </table> Trend *string `json:"Trend,omitempty"` // Turnover 売買代金<br>売買代金を百万円単位で表示する<br>※十万円の位を四捨五入 Turnover *float64 `json:"Turnover,omitempty"` } `json:"Ranking,omitempty"` // Type 種別 Type *string `json:"Type,omitempty"` }
RankingByTradeValueResponse defines model for RankingByTradeValueResponse.
type RankingByTradeVolumeResponse ¶
type RankingByTradeVolumeResponse struct { // ExchangeDivision 市場 ExchangeDivision *string `json:"ExchangeDivision,omitempty"` // Ranking ランキング Ranking *[]struct { // AverageRanking 平均順位<br>※100位以下は「999」となります AverageRanking *float64 `json:"AverageRanking,omitempty"` // CategoryName 業種名 CategoryName *string `json:"CategoryName,omitempty"` // ChangePercentage 騰落率(%) ChangePercentage *float64 `json:"ChangePercentage,omitempty"` // ChangeRatio 前日比 ChangeRatio *float64 `json:"ChangeRatio,omitempty"` // CurrentPrice 現在値 CurrentPrice *float64 `json:"CurrentPrice,omitempty"` // CurrentPriceTime 時刻<br>HH:mm<br>※日付は返しません CurrentPriceTime *string `json:"CurrentPriceTime,omitempty"` // ExchangeName 市場名 ExchangeName *string `json:"ExchangeName,omitempty"` // No 順位<br>※ランキング内で同じ順位が返却される場合があります(10位が2件など) No *int32 `json:"No,omitempty"` // RapidTradePercentage 売買高急増(%) RapidTradePercentage *float64 `json:"RapidTradePercentage,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` // SymbolName 銘柄名称 SymbolName *string `json:"SymbolName,omitempty"` // TradingVolume 売買高<br>売買高を千株単位で表示する<br>※百株の位を四捨五入 TradingVolume *float64 `json:"TradingVolume,omitempty"` // Trend トレンド // <table> // <thead> // <tr> // <th>定義値</th> // <th>内容</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>対象データ無し</td> // </tr> // <tr> // <td>1</td> // <td>過去10営業日より20位以上上昇</td> // </tr> // <tr> // <td>2</td> // <td>過去10営業日より1~19位上昇</td> // </tr> // <tr> // <td>3</td> // <td>過去10営業日と変わらず</td> // </tr> // <tr> // <td>4</td> // <td>過去10営業日より1~19位下落</td> // </tr> // <tr> // <td>5</td> // <td>過去10営業日より20位以上下落</td> // </tr> // </tbody> // </table> Trend *string `json:"Trend,omitempty"` } `json:"Ranking,omitempty"` // Type 種別 Type *string `json:"Type,omitempty"` }
RankingByTradeVolumeResponse defines model for RankingByTradeVolumeResponse.
type RankingDefaultResponse ¶
type RankingDefaultResponse struct { // ExchangeDivision 市場 ExchangeDivision *string `json:"ExchangeDivision,omitempty"` // Ranking ランキング Ranking *[]struct { // AverageRanking 平均順位<br>※100位以下は「999」となります AverageRanking *float64 `json:"AverageRanking,omitempty"` // CategoryName 業種名 CategoryName *string `json:"CategoryName,omitempty"` // ChangePercentage 騰落率(%) ChangePercentage *float64 `json:"ChangePercentage,omitempty"` // ChangeRatio 前日比 ChangeRatio *float64 `json:"ChangeRatio,omitempty"` // CurrentPrice 現在値 CurrentPrice *float64 `json:"CurrentPrice,omitempty"` // CurrentPriceTime 時刻<br>HH:mm<br>※日付は返しません CurrentPriceTime *string `json:"CurrentPriceTime,omitempty"` // ExchangeName 市場名 ExchangeName *string `json:"ExchangeName,omitempty"` // No 順位<br>※ランキング内で同じ順位が返却される場合があります(10位が2件など) No *int32 `json:"No,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` // SymbolName 銘柄名称 SymbolName *string `json:"SymbolName,omitempty"` // TradingVolume 売買高<br>売買高を千株単位で表示する<br>※百株の位を四捨五入 TradingVolume *float64 `json:"TradingVolume,omitempty"` // Trend トレンド // <table> // <thead> // <tr> // <th>定義値</th> // <th>内容</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>対象データ無し</td> // </tr> // <tr> // <td>1</td> // <td>過去10営業日より20位以上上昇</td> // </tr> // <tr> // <td>2</td> // <td>過去10営業日より1~19位上昇</td> // </tr> // <tr> // <td>3</td> // <td>過去10営業日と変わらず</td> // </tr> // <tr> // <td>4</td> // <td>過去10営業日より1~19位下落</td> // </tr> // <tr> // <td>5</td> // <td>過去10営業日より20位以上下落</td> // </tr> // </tbody> // </table> Trend *string `json:"Trend,omitempty"` // Turnover 売買代金<br>売買代金を百万円単位で表示する<br>※十万円の位を四捨五入 Turnover *float64 `json:"Turnover,omitempty"` } `json:"Ranking,omitempty"` // Type 種別 Type *string `json:"Type,omitempty"` }
RankingDefaultResponse defines model for RankingDefaultResponse.
type RankingGetParams ¶
type RankingGetParams struct { // Type 種別<br> // ※信用情報ランキングに「福証」「札証」を指定した場合は、空レスポンスになります // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>値上がり率(デフォルト)</td> // </tr> // <tr> // <td>2</td> // <td>値下がり率</td> // </tr> // <tr> // <td>3</td> // <td>売買高上位</td> // </tr> // <tr> // <td>4</td> // <td>売買代金</td> // </tr> // <tr> // <td>5</td> // <td>TICK回数</td> // </tr> // <tr> // <td>6</td> // <td>売買高急増</td> // </tr> // <tr> // <td>7</td> // <td>売買代金急増</td> // </tr> // <tr> // <td>8</td> // <td>信用売残増</td> // </tr> // <tr> // <td>9</td> // <td>信用売残減</td> // </tr> // <tr> // <td>10</td> // <td>信用買残増</td> // </tr> // <tr> // <td>11</td> // <td>信用買残減</td> // </tr> // <tr> // <td>12</td> // <td>信用高倍率</td> // </tr> // <tr> // <td>13</td> // <td>信用低倍率</td> // </tr> // <tr> // <td>14</td> // <td>業種別値上がり率</td> // </tr> // <tr> // <td>15</td> // <td>業種別値下がり率</td> // </tr> // </tbody> // </table> Type RankingGetParamsType `form:"Type" json:"Type"` // ExchangeDivision 市場<br> // ※業種別値上がり率・値下がり率に市場を指定しても無視されます // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>ALL</td> // <td>全市場(デフォルト)</td> // </tr> // <tr> // <td>T</td> // <td>東証全体</td> // </tr> // <tr> // <td>TP</td> // <td>東証プライム</td> // </tr> // <tr> // <td>TS</td> // <td>東証スタンダード</td> // </tr> // <tr> // <td>TG</td> // <td>東証グロース</td> // </tr> // <tr> // <td>M</td> // <td>名証</td> // </tr> // <tr> // <td>FK</td> // <td>福証</td> // </tr> // <tr> // <td>S</td> // <td>札証</td> // </tr> // </tbody> // </table> ExchangeDivision RankingGetParamsExchangeDivision `form:"ExchangeDivision" json:"ExchangeDivision"` // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
RankingGetParams defines parameters for RankingGet.
type RankingGetParamsExchangeDivision ¶
type RankingGetParamsExchangeDivision string
RankingGetParamsExchangeDivision defines parameters for RankingGet.
const ( ALL RankingGetParamsExchangeDivision = "ALL" FK RankingGetParamsExchangeDivision = "FK" M RankingGetParamsExchangeDivision = "M" S RankingGetParamsExchangeDivision = "S" T RankingGetParamsExchangeDivision = "T" TG RankingGetParamsExchangeDivision = "TG" TP RankingGetParamsExchangeDivision = "TP" TS RankingGetParamsExchangeDivision = "TS" )
Defines values for RankingGetParamsExchangeDivision.
type RankingGetParamsType ¶
type RankingGetParamsType string
RankingGetParamsType defines parameters for RankingGet.
const ( N1 RankingGetParamsType = "1" N10 RankingGetParamsType = "10" N11 RankingGetParamsType = "11" N12 RankingGetParamsType = "12" N13 RankingGetParamsType = "13" N14 RankingGetParamsType = "14" N15 RankingGetParamsType = "15" N2 RankingGetParamsType = "2" N3 RankingGetParamsType = "3" N4 RankingGetParamsType = "4" N5 RankingGetParamsType = "5" N6 RankingGetParamsType = "6" N7 RankingGetParamsType = "7" N8 RankingGetParamsType = "8" N9 RankingGetParamsType = "9" )
Defines values for RankingGetParamsType.
type RankingGetResponse ¶
type RankingGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // contains filtered or unexported fields } JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseRankingGetResponse ¶
func ParseRankingGetResponse(rsp *http.Response) (*RankingGetResponse, error)
ParseRankingGetResponse parses an HTTP response from a RankingGetWithResponse call
func (RankingGetResponse) Status ¶
func (r RankingGetResponse) Status() string
Status returns HTTPResponse.Status
func (RankingGetResponse) StatusCode ¶
func (r RankingGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RegistSuccess ¶
type RegistSuccess struct { // RegistList 現在登録されている銘柄のリスト RegistList *[]struct { // Exchange 市場コード // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>東証</td> // </tr> // <tr> // <td>3</td> // <td>名証</td> // </tr> // <tr> // <td>5</td> // <td>福証</td> // </tr> // <tr> // <td>6</td> // <td>札証</td> // </tr> // <tr> // <td>2</td> // <td>日通し</td> // </tr> // <tr> // <td>23</td> // <td>日中</td> // </tr> // <tr> // <td>24</td> // <td>夜間</td> // </tr> // </tbody> // </table> Exchange *int32 `json:"Exchange,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` } `json:"RegistList,omitempty"` }
RegistSuccess defines model for RegistSuccess.
type RegisterPutJSONRequestBody ¶
type RegisterPutJSONRequestBody = RequestRegister
RegisterPutJSONRequestBody defines body for RegisterPut for application/json ContentType.
type RegisterPutParams ¶
type RegisterPutParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
RegisterPutParams defines parameters for RegisterPut.
type RegisterPutResponse ¶
type RegisterPutResponse struct { Body []byte HTTPResponse *http.Response JSON200 *RegistSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseRegisterPutResponse ¶
func ParseRegisterPutResponse(rsp *http.Response) (*RegisterPutResponse, error)
ParseRegisterPutResponse parses an HTTP response from a RegisterPutWithResponse call
func (RegisterPutResponse) Status ¶
func (r RegisterPutResponse) Status() string
Status returns HTTPResponse.Status
func (RegisterPutResponse) StatusCode ¶
func (r RegisterPutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RegulationsGetParams ¶
type RegulationsGetParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
RegulationsGetParams defines parameters for RegulationsGet.
type RegulationsGetResponse ¶
type RegulationsGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *RegulationsResponse JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseRegulationsGetResponse ¶
func ParseRegulationsGetResponse(rsp *http.Response) (*RegulationsGetResponse, error)
ParseRegulationsGetResponse parses an HTTP response from a RegulationsGetWithResponse call
func (RegulationsGetResponse) Status ¶
func (r RegulationsGetResponse) Status() string
Status returns HTTPResponse.Status
func (RegulationsGetResponse) StatusCode ¶
func (r RegulationsGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RegulationsResponse ¶
type RegulationsResponse struct { // RegulationsInfo 規制情報 RegulationsInfo *[]struct { // Exchange 規制市場 // <table> // <thead> // <tr> // <th>定義値</th> // <th>内容</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>全対象</td> // </tr> // <tr> // <td>1</td> // <td>東証</td> // </tr> // <tr> // <td>3</td> // <td>名証</td> // </tr> // <tr> // <td>5</td> // <td>福証</td> // </tr> // <tr> // <td>6</td> // <td>札証</td> // </tr> // <tr> // <td>9</td> // <td>SOR</td> // </tr> // <tr> // <td>10</td> // <td>CXJ</td> // </tr> // <tr> // <td>21</td> // <td>JNX</td> // </tr> // </tbody> // </table> Exchange *int32 `json:"Exchange,omitempty"` // Level コンプライアンスレベル<br> // ※空売り規制の場合、null // <table> // <thead> // <tr> // <th>定義値</th> // <th>内容</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>規制無し</td> // </tr> // <tr> // <td>1</td> // <td>ワーニング</td> // </tr> // <tr> // <td>2</td> // <td>エラー</td> // </tr> // </tbody> // </table> Level *int32 `json:"Level,omitempty"` // LimitEndDay 制限終了日<br>yyyy/MM/dd HH:mm形式 <br>※空売り規制の場合、null LimitEndDay *string `json:"LimitEndDay,omitempty"` // LimitStartDay 制限開始日<br>yyyy/MM/dd HH:mm形式 <br>※空売り規制の場合、null LimitStartDay *string `json:"LimitStartDay,omitempty"` // Product 規制取引区分<br> // ※空売り規制の場合、「4:新規」 // <table> // <thead> // <tr> // <th>定義値</th> // <th>内容</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>全対象</td> // </tr> // <tr> // <td>1</td> // <td>現物</td> // </tr> // <tr> // <td>2</td> // <td>信用新規(制度)</td> // </tr> // <tr> // <td>3</td> // <td>信用新規(一般)</td> // </tr> // <tr> // <td>4</td> // <td>新規</td> // </tr> // <tr> // <td>5</td> // <td>信用返済(制度)</td> // </tr> // <tr> // <td>6</td> // <td>信用返済(一般)</td> // </tr> // <tr> // <td>7</td> // <td>返済</td> // </tr> // <tr> // <td>8</td> // <td>品受</td> // </tr> // <tr> // <td>9</td> // <td>品渡</td> // </tr> // </tbody> // </table> Product *int32 `json:"Product,omitempty"` // Reason 理由<br>※空売り規制の場合、「空売り規制」 Reason *string `json:"Reason,omitempty"` // Side 規制売買<br> // ※空売り規制の場合、「1:売」 // <table> // <thead> // <tr> // <th>定義値</th> // <th>内容</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>全対象</td> // </tr> // <tr> // <td>1</td> // <td>売</td> // </tr> // <tr> // <td>2</td> // <td>買</td> // </tr> // </tbody> // </table> Side *string `json:"Side,omitempty"` } `json:"RegulationsInfo,omitempty"` // Symbol 銘柄コード<br> // ※対象商品は、株式のみ Symbol *string `json:"Symbol,omitempty"` }
RegulationsResponse defines model for RegulationsResponse.
type RequestCancelOrder ¶
type RequestCancelOrder struct { // OrderId 注文番号<br>sendorderのレスポンスで受け取るOrderID。 OrderId string `json:"OrderId"` // Password 注文パスワード Password string `json:"Password"` }
RequestCancelOrder defines model for RequestCancelOrder.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestRegister ¶
type RequestRegister struct { Symbols *[]struct { // Exchange 市場コード // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>東証</td> // </tr> // <tr> // <td>3</td> // <td>名証</td> // </tr> // <tr> // <td>5</td> // <td>福証</td> // </tr> // <tr> // <td>6</td> // <td>札証</td> // </tr> // <tr> // <td>2</td> // <td>日通し</td> // </tr> // <tr> // <td>23</td> // <td>日中</td> // </tr> // <tr> // <td>24</td> // <td>夜間</td> // </tr> // </tbody> // </table> Exchange *int32 `json:"Exchange,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` } `json:"Symbols,omitempty"` }
RequestRegister defines model for RequestRegister.
type RequestSendOrder ¶
type RequestSendOrder struct { // AccountType 口座種別 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>2</td> // <td>一般</td> // </tr> // <tr> // <td>4</td> // <td>特定</td> // </tr> // <tr> // <td>12</td> // <td>法人</td> // </tr> // </tbody> // </table> AccountType int32 `json:"AccountType"` // CashMargin 信用区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>現物</td> // </tr> // <tr> // <td>2</td> // <td>新規</td> // </tr> // <tr> // <td>3</td> // <td>返済</td> // </tr> // </tbody> // </table> CashMargin int32 `json:"CashMargin"` // ClosePositionOrder 決済順序<br>※信用返済の場合、必須。<br>※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。<br>※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>日付(古い順)、損益(高い順)</td> // </tr> // <tr> // <td>1</td> // <td>日付(古い順)、損益(低い順)</td> // </tr> // <tr> // <td>2</td> // <td>日付(新しい順)、損益(高い順)</td> // </tr> // <tr> // <td>3</td> // <td>日付(新しい順)、損益(低い順)</td> // </tr> // <tr> // <td>4</td> // <td>損益(高い順)、日付(古い順)</td> // </tr> // <tr> // <td>5</td> // <td>損益(高い順)、日付(新しい順)</td> // </tr> // <tr> // <td>6</td> // <td>損益(低い順)、日付(古い順)</td> // </tr> // <tr> // <td>7</td> // <td>損益(低い順)、日付(新しい順)</td> // </tr> // </tbody> // </table> ClosePositionOrder *int32 `json:"ClosePositionOrder,omitempty"` // ClosePositions 返済建玉指定<br>※信用返済の場合、必須。<br>※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。<br>※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。<br>※信用一括返済の場合、各建玉IDと返済したい数量を入力してください。<br>※建玉IDは「E」から始まる番号です。 ClosePositions *[]Positions `json:"ClosePositions,omitempty"` // DelivType 受渡区分<br>※現物買は指定必須。<br>※現物売は「0(指定なし)」を設定<br>※信用新規は「0(指定なし)」を設定<br>※信用返済は指定必須 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>指定なし</td> // </tr> // <tr> // <td>1</td> // <td>自動振替</td> // </tr> // <tr> // <td>2</td> // <td>お預り金</td> // </tr> // </tbody> // </table> DelivType int32 `json:"DelivType"` // Exchange 市場コード // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>東証</td> // </tr> // <tr> // <td>3</td> // <td>名証</td> // </tr> // <tr> // <td>5</td> // <td>福証</td> // </tr> // <tr> // <td>6</td> // <td>札証</td> // </tr> // </tbody> // </table> Exchange int32 `json:"Exchange"` // ExpireDay 注文有効期限<br> // yyyyMMdd形式。<br> // 「0」を指定すると、kabuステーション上の発注画面の「本日」に対応する日付として扱います。<br> // 「本日」は直近の注文可能日となり、以下のように設定されます。<br> // 引けまでの間 : 当日<br> // 引け後 : 翌取引所営業日<br> // 休前日 : 休日明けの取引所営業日<br> // ※ 日替わりはkabuステーションが日付変更通知を受信したタイミングです。 ExpireDay int32 `json:"ExpireDay"` // FrontOrderType 執行条件 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // <th>”Price"の指定</th> // </tr> // </thead> // <tbody> // <tr> // <td>10</td> // <td>成行</td> // <td>0</td> // </tr> // <tr> // <td>13</td> // <td>寄成(前場)</td> // <td>0</td> // </tr> // <tr> // <td>14</td> // <td>寄成(後場)</td> // <td>0</td> // </tr> // <tr> // <td>15</td> // <td>引成(前場)</td> // <td>0</td> // </tr> // <tr> // <td>16</td> // <td>引成(後場)</td> // <td>0</td> // </tr> // <tr> // <td>17</td> // <td>IOC成行</td> // <td>0</td> // </tr> // <tr> // <td>20</td> // <td>指値</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>21</td> // <td>寄指(前場)</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>22</td> // <td>寄指(後場)</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>23</td> // <td>引指(前場)</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>24</td> // <td>引指(後場)</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>25</td> // <td>不成(前場)</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>26</td> // <td>不成(後場)</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>27</td> // <td>IOC指値</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>30</td> // <td>逆指値</td> // <td>指定なし<br>※AfterHitPriceで指定ください</td> // </tr> // </tbody> // </table> FrontOrderType int32 `json:"FrontOrderType"` // FundType 資産区分(預り区分)<br>※現物買は、指定必須。<br>※現物売は、「' '」 半角スペース2つを指定必須。<br>※信用新規と信用返済は、指定不要。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>(半角スペース2つ)</td> // <td>現物売の場合</td> // </tr> // <tr> // <td>02</td> // <td>保護</td> // </tr> // <tr> // <td>AA</td> // <td>信用代用</td> // </tr> // <tr> // <td>11</td> // <td>信用取引</td> // </tr> // </tbody> // </table> FundType *string `json:"FundType,omitempty"` // MarginPremiumUnit 1株あたりのプレミアム料(円)<br> // ※プレミアム料の刻値は、プレミアム料取得APIのレスポンスにある"TickMarginPremium"にてご確認ください。<br> // ※入札受付中(19:30~20:30)プレミアム料入札可能銘柄の場合、「MarginPremiumUnit」は必須となります。<br> // ※入札受付中(19:30~20:30)のプレミアム料入札可能銘柄以外の場合は、「MarginPremiumUnit」の記載は無視されます。<br> // ※入札受付中以外の時間帯では、「MarginPremiumUnit」の記載は無視されます。 MarginPremiumUnit *float64 `json:"MarginPremiumUnit,omitempty"` // MarginTradeType 信用取引区分<br>※現物取引の場合は指定不要。<br>※信用取引の場合、必須。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>制度信用</td> // </tr> // <tr> // <td>2</td> // <td>一般信用(長期)</td> // </tr> // <tr> // <td>3</td> // <td>一般信用(デイトレ)</td> // </tr> // </tbody> // </table> MarginTradeType *int32 `json:"MarginTradeType,omitempty"` // Password 注文パスワード Password string `json:"Password"` // Price 注文価格<br>※FrontOrderTypeで成行を指定した場合、0を指定する。<br>※詳細について、”FrontOrderType”をご確認ください。 Price float64 `json:"Price"` // Qty 注文数量<br>※信用一括返済の場合、返済したい合計数量を入力してください。 Qty int32 `json:"Qty"` // ReverseLimitOrder 逆指値条件<br> // ※FrontOrderTypeで逆指値を指定した場合のみ必須。 ReverseLimitOrder *struct { // AfterHitOrderType ヒット後執行条件<br> // ※未設定の場合はエラーになります。<br> // ※1、2、3以外が指定された場合はエラーになります。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>成行</td> // </tr> // <tr> // <td>2</td> // <td>指値</td> // </tr> // <tr> // <td>3</td> // <td>不成</td> // </tr> // </tbody> // </table> AfterHitOrderType int32 `json:"AfterHitOrderType"` // AfterHitPrice ヒット後注文価格<br> // ※未設定の場合はエラーになります。<br> // ※数字以外が設定された場合はエラーになります。<br><br> // ヒット後執行条件に従い、下記のようにヒット後注文価格を設定してください。 // <table> // <thead> // <tr> // <th>ヒット後執行条件</th> // <th>設定価格</th> // </tr> // </thead> // <tbody> // <tr> // <td>成行</td> // <td>0</td> // </tr> // <tr> // <td>指値</td> // <td>指値の単価</td> // </tr> // <tr> // <td>不成</td> // <td>不成の単価</td> // </tr> // </tbody> // </table> AfterHitPrice float64 `json:"AfterHitPrice"` // TriggerPrice トリガ価格<br> // ※未設定の場合はエラーになります。<br> // ※数字以外が設定された場合はエラーになります。 TriggerPrice float64 `json:"TriggerPrice"` // TriggerSec トリガ銘柄<br> // ※未設定の場合はエラーになります。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>発注銘柄</td> // </tr> // <tr> // <td>2</td> // <td>NK225指数</td> // </tr> // <tr> // <td>3</td> // <td>TOPIX指数</td> // </tr> // </tbody> // </table> TriggerSec int32 `json:"TriggerSec"` // UnderOver 以上/以下<br> // ※未設定の場合はエラーになります。<br> // ※1、2以外が指定された場合はエラーになります。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>以下</td> // </tr> // <tr> // <td>2</td> // <td>以上</td> // </tr> // </tbody> // </table> UnderOver int32 `json:"UnderOver"` } `json:"ReverseLimitOrder,omitempty"` // SecurityType 商品種別 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>株式</td> // </tr> // </tbody> // </table> SecurityType int32 `json:"SecurityType"` // Side 売買区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>売</td> // </tr> // <tr> // <td>2</td> // <td>買</td> // </tr> // </tbody> // </table> Side string `json:"Side"` // Symbol 銘柄コード Symbol string `json:"Symbol"` }
RequestSendOrder defines model for RequestSendOrder.
type RequestSendOrderDerivFuture ¶
type RequestSendOrderDerivFuture struct { // ClosePositionOrder 決済順序<br>※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。<br>※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>日付(古い順)、損益(高い順)</td> // </tr> // <tr> // <td>1</td> // <td>日付(古い順)、損益(低い順)</td> // </tr> // <tr> // <td>2</td> // <td>日付(新しい順)、損益(高い順)</td> // </tr> // <tr> // <td>3</td> // <td>日付(新しい順)、損益(低い順)</td> // </tr> // <tr> // <td>4</td> // <td>損益(高い順)、日付(古い順)</td> // </tr> // <tr> // <td>5</td> // <td>損益(高い順)、日付(新しい順)</td> // </tr> // <tr> // <td>6</td> // <td>損益(低い順)、日付(古い順)</td> // </tr> // <tr> // <td>7</td> // <td>損益(低い順)、日付(新しい順)</td> // </tr> // </tbody> // </table> ClosePositionOrder *int32 `json:"ClosePositionOrder,omitempty"` // ClosePositions 返済建玉指定<br>※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。<br>※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。 ClosePositions *[]PositionsDeriv `json:"ClosePositions,omitempty"` // Exchange 市場コード // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>2</td> // <td>日通し</td> // </tr> // <tr> // <td>23</td> // <td>日中</td> // </tr> // <tr> // <td>24</td> // <td>夜間</td> // </tr> // </tbody> // </table> Exchange int32 `json:"Exchange"` // ExpireDay 注文有効期限<br> // yyyyMMdd形式。<br> // 「0」を指定すると、kabuステーション上の発注画面の「本日」に対応する日付として扱います。<br> // 「本日」は直近の注文可能日となり、以下のように設定されます。<br> // その市場の引けまでの間 : 当日<br> // その市場の引け後 : 翌取引所営業日<br> // その市場の休前日 : 休日明けの取引所営業日<br> // ※ 日替わりはkabuステーションが日付変更通知を受信したタイミングです。<br> // ※ 日通しの場合、夜間取引の引け後に日付が更新されます。 ExpireDay int32 `json:"ExpireDay"` // FrontOrderType 執行条件 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // <th>”Price”の指定</th> // </tr> // </thead> // <tbody> // <tr> // <td>18</td> // <td>引成(派生)<br>※TimeInForceは、「FAK」のみ有効</td> // <td>0</td> // </tr> // <tr> // <td>20</td> // <td>指値</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>28</td> // <td>引指(派生)<br>※TimeInForceは、「FAS」のみ有効</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>30</td> // <td>逆指値</td> // <td>指定なし<br>※AfterHitPriceで指定ください</td> // </tr> // <tr> // <td>120</td> // <td>成行(マーケットオーダー)</td> // <td>0</td> // </tr> // </tbody> // </table> FrontOrderType int32 `json:"FrontOrderType"` // Password 注文パスワード Password string `json:"Password"` // Price 注文価格<br>※FrontOrderTypeで成行を指定した場合、0を指定する。<br>※詳細について、”FrontOrderType”をご確認ください。 Price float64 `json:"Price"` // Qty 注文数量 Qty int32 `json:"Qty"` // ReverseLimitOrder 逆指値条件<br> // ※FrontOrderTypeで逆指値を指定した場合のみ必須。 ReverseLimitOrder *struct { // AfterHitOrderType ヒット後執行条件<br> // ※未設定の場合はエラーになります。<br> // ※日通の注文で2以外が指定された場合はエラーになります。<br> // ※日中、夜間の注文で1、2以外が指定された場合はエラーになります。<br> // ※逆指値(成行)で有効期間条件(TimeInForce)にFAK以外を指定された場合はエラーになります。<br> // ※逆指値(指値)で有効期間条件(TimeInForce)にFAS以外を指定された場合はエラーになります。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>成行</td> // </tr> // <tr> // <td>2</td> // <td>指値</td> // </tr> // </tbody> // </table> AfterHitOrderType int32 `json:"AfterHitOrderType"` // AfterHitPrice ヒット後注文価格<br> // ※未設定の場合はエラーになります。<br> // ※数字以外が設定された場合はエラーになります。<br><br> // ヒット後執行条件に従い、下記のようにヒット後注文価格を設定してください。 // <table> // <thead> // <tr> // <th>ヒット後執行条件</th> // <th>設定価格</th> // </tr> // </thead> // <tbody> // <tr> // <td>成行</td> // <td>0</td> // </tr> // <tr> // <td>指値</td> // <td>指値の単価</td> // </tr> // </tbody> // </table> AfterHitPrice float64 `json:"AfterHitPrice"` // TriggerPrice トリガ価格<br> // ※未設定の場合はエラーになります。<br> // ※数字以外が設定された場合はエラーになります。 TriggerPrice float64 `json:"TriggerPrice"` // UnderOver 以上/以下<br> // ※未設定の場合はエラーになります。<br> // ※1、2以外が指定された場合はエラーになります。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>以下</td> // </tr> // <tr> // <td>2</td> // <td>以上</td> // </tr> // </tbody> // </table> UnderOver int32 `json:"UnderOver"` } `json:"ReverseLimitOrder,omitempty"` // Side 売買区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>売</td> // </tr> // <tr> // <td>2</td> // <td>買</td> // </tr> // </tbody> // </table> Side string `json:"Side"` // Symbol 銘柄コード<br>※取引最終日に「先物銘柄コード取得」でDerivMonthに0(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。 Symbol string `json:"Symbol"` // TimeInForce 有効期間条件 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>FAS<br>※逆指値注文以外の場合、FASを指定した場合、FrontOrderTypeは指値(20)のみ指定可能。</td> // </tr> // <tr> // <td>2</td> // <td>FAK<br>※逆指値注文以外の場合、FAKを指定した場合、Exchangeは日中(23)、夜間(24)のみ指定可能。</td> // </tr> // <tr> // <td>3</td> // <td>FOK<br>※逆指値注文以外の場合、FOKを指定した場合、Exchangeは日中(23)、夜間(24)のみ指定可能。</td> // </tr> // </tbody> // </table> TimeInForce int32 `json:"TimeInForce"` // TradeType 取引区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>新規</td> // </tr> // <tr> // <td>2</td> // <td>返済</td> // </tr> // </tbody> // </table> TradeType int32 `json:"TradeType"` }
RequestSendOrderDerivFuture defines model for RequestSendOrderDerivFuture.
type RequestSendOrderDerivOption ¶
type RequestSendOrderDerivOption struct { // ClosePositionOrder 決済順序<br>※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。<br>※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0</td> // <td>日付(古い順)、損益(高い順)</td> // </tr> // <tr> // <td>1</td> // <td>日付(古い順)、損益(低い順)</td> // </tr> // <tr> // <td>2</td> // <td>日付(新しい順)、損益(高い順)</td> // </tr> // <tr> // <td>3</td> // <td>日付(新しい順)、損益(低い順)</td> // </tr> // <tr> // <td>4</td> // <td>損益(高い順)、日付(古い順)</td> // </tr> // <tr> // <td>5</td> // <td>損益(高い順)、日付(新しい順)</td> // </tr> // <tr> // <td>6</td> // <td>損益(低い順)、日付(古い順)</td> // </tr> // <tr> // <td>7</td> // <td>損益(低い順)、日付(新しい順)</td> // </tr> // </tbody> // </table> ClosePositionOrder *int32 `json:"ClosePositionOrder,omitempty"` // ClosePositions 返済建玉指定<br>※ClosePositionOrderとClosePositionsはどちらか一方のみ指定可能。<br>※ClosePositionOrderとClosePositionsを両方指定した場合、エラー。 ClosePositions *[]PositionsDeriv `json:"ClosePositions,omitempty"` // Exchange 市場コード // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>2</td> // <td>日通し</td> // </tr> // <tr> // <td>23</td> // <td>日中</td> // </tr> // <tr> // <td>24</td> // <td>夜間</td> // </tr> // </tbody> // </table> Exchange int32 `json:"Exchange"` // ExpireDay 注文有効期限<br> // yyyyMMdd形式。<br> // 「0」を指定すると、kabuステーション上の発注画面の「本日」に対応する日付として扱います。<br> // 「本日」は直近の注文可能日となり、以下のように設定されます。<br> // その市場の引けまでの間 : 当日<br> // その市場の引け後 : 翌取引所営業日<br> // その市場の休前日 : 休日明けの取引所営業日<br> // ※ 日替わりはkabuステーションが日付変更通知を受信したタイミングです。<br> // ※ 日通しの場合、夜間取引の引け後に日付が更新されます。 ExpireDay int32 `json:"ExpireDay"` // FrontOrderType 執行条件 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // <th>”Price”の指定</th> // </tr> // </thead> // <tbody> // <tr> // <td>18</td> // <td>引成(派生)<br>※TimeInForceは、「FAK」のみ有効</td> // <td>0</td> // </tr> // <tr> // <td>20</td> // <td>指値</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>28</td> // <td>引指(派生)<br>※TimeInForceは、「FAS」のみ有効</td> // <td>発注したい金額</td> // </tr> // <tr> // <td>30</td> // <td>逆指値</td> // <td>指定なし<br>※AfterHitPriceで指定ください</td> // </tr> // <tr> // <td>120</td> // <td>成行(マーケットオーダー)</td> // <td>0</td> // </tr> // </tbody> // </table> FrontOrderType int32 `json:"FrontOrderType"` // Password 注文パスワード Password string `json:"Password"` // Price 注文価格<br>※FrontOrderTypeで成行を指定した場合、0を指定する。<br>※詳細について、”FrontOrderType”をご確認ください。 Price float64 `json:"Price"` // Qty 注文数量 Qty int32 `json:"Qty"` // ReverseLimitOrder 逆指値条件<br> // ※FrontOrderTypeで逆指値を指定した場合のみ必須。 ReverseLimitOrder *struct { // AfterHitOrderType ヒット後執行条件<br> // ※未設定の場合はエラーになります。<br> // ※日通の注文で2以外が指定された場合はエラーになります。<br> // ※日中、夜間の注文で1、2以外が指定された場合はエラーになります。<br> // ※逆指値(成行)で有効期間条件(TimeInForce)にFAK以外を指定された場合はエラーになります。<br> // ※逆指値(指値)で有効期間条件(TimeInForce)にFAS以外を指定された場合はエラーになります。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>成行</td> // </tr> // <tr> // <td>2</td> // <td>指値</td> // </tr> // </tbody> // </table> AfterHitOrderType int32 `json:"AfterHitOrderType"` // AfterHitPrice ヒット後注文価格<br> // ※未設定の場合はエラーになります。<br> // ※数字以外が設定された場合はエラーになります。<br><br> // ヒット後執行条件に従い、下記のようにヒット後注文価格を設定してください。 // <table> // <thead> // <tr> // <th>ヒット後執行条件</th> // <th>設定価格</th> // </tr> // </thead> // <tbody> // <tr> // <td>成行</td> // <td>0</td> // </tr> // <tr> // <td>指値</td> // <td>指値の単価</td> // </tr> // </tbody> // </table> AfterHitPrice float64 `json:"AfterHitPrice"` // TriggerPrice トリガ価格<br> // ※未設定の場合はエラーになります。<br> // ※数字以外が設定された場合はエラーになります。 TriggerPrice float64 `json:"TriggerPrice"` // UnderOver 以上/以下<br> // ※未設定の場合はエラーになります。<br> // ※1、2以外が指定された場合はエラーになります。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>以下</td> // </tr> // <tr> // <td>2</td> // <td>以上</td> // </tr> // </tbody> // </table> UnderOver int32 `json:"UnderOver"` } `json:"ReverseLimitOrder,omitempty"` // Side 売買区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>売</td> // </tr> // <tr> // <td>2</td> // <td>買</td> // </tr> // </tbody> // </table> Side string `json:"Side"` // Symbol 銘柄コード<br>※取引最終日に「オプション銘柄コード取得」でDerivMonthに0(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。 Symbol string `json:"Symbol"` // TimeInForce 有効期間条件 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>FAS<br>※逆指値注文以外の場合、FASを指定した場合、FrontOrderTypeは指値(20)のみ指定可能。</td> // </tr> // <tr> // <td>2</td> // <td>FAK<br>※逆指値注文以外の場合、FAKを指定した場合、Exchangeは日中(23)、夜間(24)のみ指定可能。</td> // </tr> // <tr> // <td>3</td> // <td>FOK<br>※逆指値注文以外の場合、FOKを指定した場合、Exchangeは日中(23)、夜間(24)のみ指定可能。</td> // </tr> // </tbody> // </table> TimeInForce int32 `json:"TimeInForce"` // TradeType 取引区分 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>新規</td> // </tr> // <tr> // <td>2</td> // <td>返済</td> // </tr> // </tbody> // </table> TradeType int32 `json:"TradeType"` }
RequestSendOrderDerivOption defines model for RequestSendOrderDerivOption.
type RequestToken ¶
type RequestToken struct { // APIPassword APIパスワード APIPassword string `json:"APIPassword"` }
RequestToken defines model for RequestToken.
type RequestUnregister ¶
type RequestUnregister struct { // Symbols ※為替銘柄を登録する場合、銘柄名は"通貨A" + "/" + "通貨B"、市場コードは"300"で指定してください。 // 例:'Symbol': 'EUR/USD', "Exchange": 300 Symbols *[]struct { // Exchange 市場コード // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>東証</td> // </tr> // <tr> // <td>3</td> // <td>名証</td> // </tr> // <tr> // <td>5</td> // <td>福証</td> // </tr> // <tr> // <td>6</td> // <td>札証</td> // </tr> // <tr> // <td>2</td> // <td>日通し</td> // </tr> // <tr> // <td>23</td> // <td>日中</td> // </tr> // <tr> // <td>24</td> // <td>夜間</td> // </tr> // </tbody> // </table> Exchange *int32 `json:"Exchange,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` } `json:"Symbols,omitempty"` }
RequestUnregister defines model for RequestUnregister.
type SendoderFuturePostJSONRequestBody ¶
type SendoderFuturePostJSONRequestBody = RequestSendOrderDerivFuture
SendoderFuturePostJSONRequestBody defines body for SendoderFuturePost for application/json ContentType.
type SendoderFuturePostParams ¶
type SendoderFuturePostParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
SendoderFuturePostParams defines parameters for SendoderFuturePost.
type SendoderFuturePostResponse ¶
type SendoderFuturePostResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrderSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseSendoderFuturePostResponse ¶
func ParseSendoderFuturePostResponse(rsp *http.Response) (*SendoderFuturePostResponse, error)
ParseSendoderFuturePostResponse parses an HTTP response from a SendoderFuturePostWithResponse call
func (SendoderFuturePostResponse) Status ¶
func (r SendoderFuturePostResponse) Status() string
Status returns HTTPResponse.Status
func (SendoderFuturePostResponse) StatusCode ¶
func (r SendoderFuturePostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendorderOptionPostJSONRequestBody ¶
type SendorderOptionPostJSONRequestBody = RequestSendOrderDerivOption
SendorderOptionPostJSONRequestBody defines body for SendorderOptionPost for application/json ContentType.
type SendorderOptionPostParams ¶
type SendorderOptionPostParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
SendorderOptionPostParams defines parameters for SendorderOptionPost.
type SendorderOptionPostResponse ¶
type SendorderOptionPostResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrderSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseSendorderOptionPostResponse ¶
func ParseSendorderOptionPostResponse(rsp *http.Response) (*SendorderOptionPostResponse, error)
ParseSendorderOptionPostResponse parses an HTTP response from a SendorderOptionPostWithResponse call
func (SendorderOptionPostResponse) Status ¶
func (r SendorderOptionPostResponse) Status() string
Status returns HTTPResponse.Status
func (SendorderOptionPostResponse) StatusCode ¶
func (r SendorderOptionPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendorderPostJSONRequestBody ¶
type SendorderPostJSONRequestBody = RequestSendOrder
SendorderPostJSONRequestBody defines body for SendorderPost for application/json ContentType.
type SendorderPostParams ¶
type SendorderPostParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
SendorderPostParams defines parameters for SendorderPost.
type SendorderPostResponse ¶
type SendorderPostResponse struct { Body []byte HTTPResponse *http.Response JSON200 *OrderSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseSendorderPostResponse ¶
func ParseSendorderPostResponse(rsp *http.Response) (*SendorderPostResponse, error)
ParseSendorderPostResponse parses an HTTP response from a SendorderPostWithResponse call
func (SendorderPostResponse) Status ¶
func (r SendorderPostResponse) Status() string
Status returns HTTPResponse.Status
func (SendorderPostResponse) StatusCode ¶
func (r SendorderPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SymbolGetParams ¶
type SymbolGetParams struct { // Addinfo 追加情報出力フラグ(未指定時:true)<br> // ※追加情報は、「時価総額」、「発行済み株式数」、「決算期日」、「清算値」を意味します。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>true</td> // <td>追加情報を出力する</td> // </tr> // <tr> // <td>false</td> // <td>追加情報を出力しない</td> // </tr> // </tbody> // </table> Addinfo *string `form:"addinfo,omitempty" json:"addinfo,omitempty"` // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
SymbolGetParams defines parameters for SymbolGet.
type SymbolGetResponse ¶
type SymbolGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SymbolSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseSymbolGetResponse ¶
func ParseSymbolGetResponse(rsp *http.Response) (*SymbolGetResponse, error)
ParseSymbolGetResponse parses an HTTP response from a SymbolGetWithResponse call
func (SymbolGetResponse) Status ¶
func (r SymbolGetResponse) Status() string
Status returns HTTPResponse.Status
func (SymbolGetResponse) StatusCode ¶
func (r SymbolGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SymbolNameSuccess ¶
type SymbolNameSuccess struct { // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` // SymbolName 銘柄名称 SymbolName *string `json:"SymbolName,omitempty"` }
SymbolNameSuccess defines model for SymbolNameSuccess.
type SymbolSuccess ¶
type SymbolSuccess struct { // BisCategory 業種コード名<br>※株式銘柄の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>0050</td> // <td>水産・農林業</td> // </tr> // <tr> // <td>1050</td> // <td>鉱業</td> // </tr> // <tr> // <td>2050</td> // <td>建設業</td> // </tr> // <tr> // <td>3050</td> // <td>食料品</td> // </tr> // <tr> // <td>3100</td> // <td>繊維製品</td> // </tr> // <tr> // <td>3150</td> // <td>パルプ・紙</td> // </tr> // <tr> // <td>3200</td> // <td>化学</td> // </tr> // <tr> // <td>3250</td> // <td>医薬品</td> // </tr> // <tr> // <td>3300</td> // <td>石油・石炭製品</td> // </tr> // <tr> // <td>3350</td> // <td>ゴム製品</td> // </tr> // <tr> // <td>3400</td> // <td>ガラス・土石製品</td> // </tr> // <tr> // <td>3450</td> // <td>鉄鋼</td> // </tr> // <tr> // <td>3500</td> // <td>非鉄金属</td> // </tr> // <tr> // <td>3550</td> // <td>金属製品</td> // </tr> // <tr> // <td>3600</td> // <td>機械</td> // </tr> // <tr> // <td>3650</td> // <td>電気機器</td> // </tr> // <tr> // <td>3700</td> // <td>輸送用機器</td> // </tr> // <tr> // <td>3750</td> // <td>精密機器</td> // </tr> // <tr> // <td>3800</td> // <td>その他製品</td> // </tr> // <tr> // <td>4050</td> // <td>電気・ガス業</td> // </tr> // <tr> // <td>5050</td> // <td>陸運業</td> // </tr> // <tr> // <td>5100</td> // <td>海運業</td> // </tr> // <tr> // <td>5150</td> // <td>空運業</td> // </tr> // <tr> // <td>5200</td> // <td>倉庫・運輸関連業</td> // </tr> // <tr> // <td>5250</td> // <td>情報・通信業</td> // </tr> // <tr> // <td>6050</td> // <td>卸売業</td> // </tr> // <tr> // <td>6100</td> // <td>小売業</td> // </tr> // <tr> // <td>7050</td> // <td>銀行業</td> // </tr> // <tr> // <td>7100</td> // <td>証券、商品先物取引業</td> // </tr> // <tr> // <td>7150</td> // <td>保険業</td> // </tr> // <tr> // <td>7200</td> // <td>その他金融業</td> // </tr> // <tr> // <td>8050</td> // <td>不動産業</td> // </tr> // <tr> // <td>9050</td> // <td>サービス業</td> // </tr> // <tr> // <td>9999</td> // <td>その他</td> // </tr> // </tbody> // </table> BisCategory *string `json:"BisCategory,omitempty"` // ClearingPrice 清算値<br>※先物銘柄の場合のみ<br>追加情報出力フラグ:falseの場合、null ClearingPrice *float64 `json:"ClearingPrice,omitempty"` // DerivMonth 限月-年月<br>※「限月-年月」は「年(yyyy)/月(MM)」で表示します。<br>※先物・オプション銘柄の場合のみ DerivMonth *string `json:"DerivMonth,omitempty"` // DisplayName 銘柄略称<br>※株式・先物・オプション銘柄の場合のみ DisplayName *string `json:"DisplayName,omitempty"` // Exchange 市場コード<br>※株式・先物・オプション銘柄の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>東証</td> // </tr> // <tr> // <td>3</td> // <td>名証</td> // </tr> // <tr> // <td>5</td> // <td>福証</td> // </tr> // <tr> // <td>6</td> // <td>札証</td> // </tr> // <tr> // <td>2</td> // <td>日通し</td> // </tr> // <tr> // <td>23</td> // <td>日中</td> // </tr> // <tr> // <td>24</td> // <td>夜間</td> // </tr> // </tbody> // </table> Exchange *int32 `json:"Exchange,omitempty"` // ExchangeName 市場名称<br>※株式・先物・オプション銘柄の場合のみ ExchangeName *string `json:"ExchangeName,omitempty"` // FiscalYearEndBasic 決算期日<br>※株式銘柄の場合のみ<br>追加情報出力フラグ:falseの場合、null FiscalYearEndBasic *int32 `json:"FiscalYearEndBasic,omitempty"` // KCMarginBuy 一般信用買建フラグ<br>※trueのとき、一般信用(長期)または一般信用(デイトレ)が買建可能<br>※株式銘柄の場合のみ KCMarginBuy *bool `json:"KCMarginBuy,omitempty"` // KCMarginSell 一般信用売建フラグ<br>※trueのとき、一般信用(長期)または一般信用(デイトレ)が売建可能<br>※株式銘柄の場合のみ KCMarginSell *bool `json:"KCMarginSell,omitempty"` // LowerLimit 値幅下限<br>※株式・先物・オプション銘柄の場合のみ LowerLimit *float64 `json:"LowerLimit,omitempty"` // MarginBuy 制度信用買建フラグ<br>※trueのとき制度信用買建可能<br>※株式銘柄の場合のみ MarginBuy *bool `json:"MarginBuy,omitempty"` // MarginSell 制度信用売建フラグ<br>※trueのとき制度信用売建可能<br>※株式銘柄の場合のみ MarginSell *bool `json:"MarginSell,omitempty"` // PriceRangeGroup 呼値グループ<br> // ※株式・先物・オプション銘柄の場合のみ<br> // ※各呼値コードが対応する商品は以下となります。<BR> // 株式の呼値の単位の詳細は [JPXページ](https://www.jpx.co.jp/equities/trading/domestic/07.html) をご覧ください。<BR> // 10000:株式(TOPIX100採用銘柄以外) <br> // 10003:株式(TOPIX100採用銘柄)<br> // 10118 : 日経平均先物<br> // 10119 : 日経225mini<br> // 10318 : 日経平均オプション<br> // 10706 : ミニTOPIX先物<br> // 10718 : TOPIX先物<br> // 12122 : JPX日経400指数先物<br> // 14473 : NYダウ先物<br> // 14515 : 日経平均VI先物<br> // 15411 : 東証マザーズ指数先物<br> // 15569 : 東証REIT指数先物<br> // 17163 : TOPIXCore30指数先物<br> // <table> // <thead> // <tr> // <th>呼値コード</th> // <th>値段の水準</th> // <th>呼値単位</th> // </tr> // </thead> // <tbody> // <tr> // <td>10000</td> // <td>3000円以下</td> // <td>1</td> // </tr> // <tr> // <td>10000</td> // <td>5000円以下</td> // <td>5</td> // </tr> // <tr> // <td>10000</td> // <td>30000円以下</td> // <td>10</td> // </tr> // <tr> // <td>10000</td> // <td>50000円以下</td> // <td>50</td> // </tr> // <tr> // <td>10000</td> // <td>300000円以下</td> // <td>100</td> // </tr> // <tr> // <td>10000</td> // <td>500000円以下</td> // <td>500</td> // </tr> // <tr> // <td>10000</td> // <td>3000000円以下</td> // <td>1000</td> // </tr> // <tr> // <td>10000</td> // <td>5000000円以下</td> // <td>5000</td> // </tr> // <tr> // <td>10000</td> // <td>30000000円以下</td> // <td>10000</td> // </tr> // <tr> // <td>10000</td> // <td>50000000円以下</td> // <td>50000</td> // </tr> // <tr> // <td>10000</td> // <td>50000000円超</td> // <td>100000</td> // </tr> // <tr> // <td>10003</td> // <td>1000円以下</td> // <td>0.1</td> // </tr> // <tr> // <td>10003</td> // <td>3000円以下</td> // <td>0.5</td> // </tr> // <tr> // <td>10003</td> // <td>10000円以下</td> // <td>1</td> // </tr> // <tr> // <td>10003</td> // <td>30000円以下</td> // <td>5</td> // </tr> // <tr> // <td>10003</td> // <td>100000円以下</td> // <td>10</td> // </tr> // <tr> // <td>10003</td> // <td>300000円以下</td> // <td>50</td> // </tr> // <tr> // <td>10003</td> // <td>1000000円以下</td> // <td>100</td> // </tr> // <tr> // <td>10003</td> // <td>3000000円以下</td> // <td>500</td> // </tr> // <tr> // <td>10003</td> // <td>10000000円以下</td> // <td>1000</td> // </tr> // <tr> // <td>10003</td> // <td>30000000円以下</td> // <td>5000</td> // </tr> // <tr> // <td>10003</td> // <td>30000000円超</td> // <td>10000</td> // </tr> // <tr> // <td>10118</td> // <td>-</td> // <td>10</td> // </tr> // <tr> // <td>10119</td> // <td>-</td> // <td>5</td> // </tr> // <tr> // <td>10318</td> // <td>100円以下</td> // <td>1</td> // </tr> // <tr> // <td>10318</td> // <td>1000円以下</td> // <td>5</td> // </tr> // <tr> // <td>10318</td> // <td>1000円超</td> // <td>10</td> // </tr> // <tr> // <td>10706</td> // <td>-</td> // <td>0.25</td> // </tr> // <tr> // <td>10718</td> // <td>-</td> // <td>0.5</td> // </tr> // <tr> // <td>12122</td> // <td>-</td> // <td>5</td> // </tr> // <tr> // <td>14473</td> // <td>-</td> // <td>1</td> // </tr> // <tr> // <td>14515</td> // <td>-</td> // <td>0.05</td> // </tr> // <tr> // <td>15411</td> // <td>-</td> // <td>1</td> // </tr> // <tr> // <td>15569</td> // <td>-</td> // <td>0.5</td> // </tr> // <tr> // <td>17163</td> // <td>-</td> // <td>0.5</td> // </tr> // </tbody> // </table> PriceRangeGroup *string `json:"PriceRangeGroup,omitempty"` // PutOrCall プット/コール区分<br>※オプション銘柄の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>1</td> // <td>プット</td> // </tr> // <tr> // <td>2</td> // <td>コール</td> // </tr> // </tbody> // </table> PutOrCall *int32 `json:"PutOrCall,omitempty"` // StrikePrice 権利行使価格<br>※オプション銘柄の場合のみ StrikePrice *float64 `json:"StrikePrice,omitempty"` // Symbol 銘柄コード Symbol *string `json:"Symbol,omitempty"` // SymbolName 銘柄名 SymbolName *string `json:"SymbolName,omitempty"` // TotalMarketValue 時価総額<br>※株式銘柄の場合のみ<br>追加情報出力フラグ:falseの場合、null TotalMarketValue *float64 `json:"TotalMarketValue,omitempty"` // TotalStocks 発行済み株式数(千株)<br>※株式銘柄の場合のみ<br>追加情報出力フラグ:falseの場合、null TotalStocks *float64 `json:"TotalStocks,omitempty"` // TradeEnd 取引終了日<br>※先物・オプション銘柄の場合のみ TradeEnd *int32 `json:"TradeEnd,omitempty"` // TradeStart 取引開始日<br>※先物・オプション銘柄の場合のみ TradeStart *int32 `json:"TradeStart,omitempty"` // TradingUnit 売買単位<br>※株式・先物・オプション銘柄の場合のみ TradingUnit *float64 `json:"TradingUnit,omitempty"` // Underlyer 原資産コード<br>※先物・オプション銘柄の場合のみ // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>NK225</td> // <td>日経225</td> // </tr> // <tr> // <td>NK300</td> // <td>日経300</td> // </tr> // <tr> // <td>MOTHERS</td> // <td>東証マザーズ</td> // </tr> // <tr> // <td>JPX400</td> // <td>JPX日経400</td> // </tr> // <tr> // <td>TOPIX</td> // <td>TOPIX</td> // </tr> // <tr> // <td>NKVI</td> // <td>日経平均VI</td> // </tr> // <tr> // <td>DJIA</td> // <td>NYダウ</td> // </tr> // <tr> // <td>TSEREITINDEX</td> // <td>東証REIT指数</td> // </tr> // <tr> // <td>TOPIXCORE30</td> // <td>TOPIX Core30</td> // </tr> // </tbody> // </table> Underlyer *string `json:"Underlyer,omitempty"` // UpperLimit 値幅上限<br>※株式・先物・オプション銘柄の場合のみ UpperLimit *float64 `json:"UpperLimit,omitempty"` }
SymbolSuccess defines model for SymbolSuccess.
type SymbolnameFutureGetParams ¶
type SymbolnameFutureGetParams struct { // FutureCode 先物コード<br> // ※大文字小文字は区別しません。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>NK225</td> // <td>日経平均先物</td> // </tr> // <tr> // <td>NK225mini</td> // <td>日経225mini先物</td> // </tr> // <tr> // <td>TOPIX</td> // <td>TOPIX先物</td> // </tr> // <tr> // <td>TOPIXmini</td> // <td>ミニTOPIX先物</td> // </tr> // <tr> // <td>MOTHERS</td> // <td>東証マザーズ先物</td> // </tr> // <tr> // <td>JPX400</td> // <td>JPX日経400先物</td> // </tr> // <tr> // <td>DOW</td> // <td>NYダウ先物</td> // </tr> // <tr> // <td>VI</td> // <td>日経平均VI先物</td> // </tr> // <tr> // <td>Core30</td> // <td>TOPIX Core30先物</td> // </tr> // <tr> // <td>REIT</td> // <td>東証REIT指数先物</td> // </tr> // </tbody> // </table> FutureCode *string `form:"FutureCode,omitempty" json:"FutureCode,omitempty"` // DerivMonth 限月<br> // ※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。<br> // ※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、 // 取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。 DerivMonth int32 `form:"DerivMonth" json:"DerivMonth"` // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
SymbolnameFutureGetParams defines parameters for SymbolnameFutureGet.
type SymbolnameFutureGetResponse ¶
type SymbolnameFutureGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SymbolNameSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseSymbolnameFutureGetResponse ¶
func ParseSymbolnameFutureGetResponse(rsp *http.Response) (*SymbolnameFutureGetResponse, error)
ParseSymbolnameFutureGetResponse parses an HTTP response from a SymbolnameFutureGetWithResponse call
func (SymbolnameFutureGetResponse) Status ¶
func (r SymbolnameFutureGetResponse) Status() string
Status returns HTTPResponse.Status
func (SymbolnameFutureGetResponse) StatusCode ¶
func (r SymbolnameFutureGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SymbolnameOptionGetParams ¶
type SymbolnameOptionGetParams struct { // DerivMonth 限月<br>※限月はyyyyMM形式で指定します。0を指定した場合、直近限月となります。<br>※取引最終日に「0」(直近限月)を指定した場合、日中・夜間の時間帯に関わらず、取引最終日を迎える限月の銘柄コードを返します。取引最終日を迎える銘柄の取引は日中取引をもって終了となりますので、ご注意ください。 DerivMonth int32 `form:"DerivMonth" json:"DerivMonth"` // PutOrCall コール or プット<br> // ※大文字小文字は区別しません。 // <table> // <thead> // <tr> // <th>定義値</th> // <th>説明</th> // </tr> // </thead> // <tbody> // <tr> // <td>P</td> // <td>PUT</td> // </tr> // <tr> // <td>C</td> // <td>CALL</td> // </tr> // </tbody> // </table> PutOrCall string `form:"PutOrCall" json:"PutOrCall"` // StrikePrice 権利行使価格<br>※0を指定した場合、APIを実行した時点でのATMとなります。 StrikePrice int32 `form:"StrikePrice" json:"StrikePrice"` // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
SymbolnameOptionGetParams defines parameters for SymbolnameOptionGet.
type SymbolnameOptionGetResponse ¶
type SymbolnameOptionGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SymbolNameSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseSymbolnameOptionGetResponse ¶
func ParseSymbolnameOptionGetResponse(rsp *http.Response) (*SymbolnameOptionGetResponse, error)
ParseSymbolnameOptionGetResponse parses an HTTP response from a SymbolnameOptionGetWithResponse call
func (SymbolnameOptionGetResponse) Status ¶
func (r SymbolnameOptionGetResponse) Status() string
Status returns HTTPResponse.Status
func (SymbolnameOptionGetResponse) StatusCode ¶
func (r SymbolnameOptionGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TokenPostJSONRequestBody ¶
type TokenPostJSONRequestBody = RequestToken
TokenPostJSONRequestBody defines body for TokenPost for application/json ContentType.
type TokenPostResponse ¶
type TokenPostResponse struct { Body []byte HTTPResponse *http.Response JSON200 *TokenSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseTokenPostResponse ¶
func ParseTokenPostResponse(rsp *http.Response) (*TokenPostResponse, error)
ParseTokenPostResponse parses an HTTP response from a TokenPostWithResponse call
func (TokenPostResponse) Status ¶
func (r TokenPostResponse) Status() string
Status returns HTTPResponse.Status
func (TokenPostResponse) StatusCode ¶
func (r TokenPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TokenSuccess ¶
type TokenSuccess struct { // ResultCode 結果コード<br>0が成功。それ以外はエラーコード。 ResultCode *int32 `json:"ResultCode,omitempty"` // Token APIトークン Token *string `json:"Token,omitempty"` }
TokenSuccess defines model for TokenSuccess.
type UnregisterAllPutParams ¶
type UnregisterAllPutParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
UnregisterAllPutParams defines parameters for UnregisterAllPut.
type UnregisterAllPutResponse ¶
type UnregisterAllPutResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UnregisterAllSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseUnregisterAllPutResponse ¶
func ParseUnregisterAllPutResponse(rsp *http.Response) (*UnregisterAllPutResponse, error)
ParseUnregisterAllPutResponse parses an HTTP response from a UnregisterAllPutWithResponse call
func (UnregisterAllPutResponse) Status ¶
func (r UnregisterAllPutResponse) Status() string
Status returns HTTPResponse.Status
func (UnregisterAllPutResponse) StatusCode ¶
func (r UnregisterAllPutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnregisterAllSuccess ¶
type UnregisterAllSuccess struct { // RegistList 現在登録されている銘柄のリスト<br>※銘柄登録解除が正常に行われれば、空リストを返します。<br> 登録解除でエラー等が発生した場合、現在登録されている銘柄のリストを返します RegistList *map[string]interface{} `json:"RegistList,omitempty"` }
UnregisterAllSuccess defines model for UnregisterAllSuccess.
type UnregisterPutJSONRequestBody ¶
type UnregisterPutJSONRequestBody = RequestUnregister
UnregisterPutJSONRequestBody defines body for UnregisterPut for application/json ContentType.
type UnregisterPutParams ¶
type UnregisterPutParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
UnregisterPutParams defines parameters for UnregisterPut.
type UnregisterPutResponse ¶
type UnregisterPutResponse struct { Body []byte HTTPResponse *http.Response JSON200 *RegistSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseUnregisterPutResponse ¶
func ParseUnregisterPutResponse(rsp *http.Response) (*UnregisterPutResponse, error)
ParseUnregisterPutResponse parses an HTTP response from a UnregisterPutWithResponse call
func (UnregisterPutResponse) Status ¶
func (r UnregisterPutResponse) Status() string
Status returns HTTPResponse.Status
func (UnregisterPutResponse) StatusCode ¶
func (r UnregisterPutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type WalletCashGetParams ¶
type WalletCashGetParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
WalletCashGetParams defines parameters for WalletCashGet.
type WalletCashGetResponse ¶
type WalletCashGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *WalletCashSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseWalletCashGetResponse ¶
func ParseWalletCashGetResponse(rsp *http.Response) (*WalletCashGetResponse, error)
ParseWalletCashGetResponse parses an HTTP response from a WalletCashGetWithResponse call
func (WalletCashGetResponse) Status ¶
func (r WalletCashGetResponse) Status() string
Status returns HTTPResponse.Status
func (WalletCashGetResponse) StatusCode ¶
func (r WalletCashGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type WalletCashSuccess ¶
type WalletCashSuccess struct { // StockAccountWallet 現物買付可能額 StockAccountWallet *float64 `json:"StockAccountWallet,omitempty"` }
WalletCashSuccess defines model for WalletCashSuccess.
type WalletFutureGetParams ¶
type WalletFutureGetParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
WalletFutureGetParams defines parameters for WalletFutureGet.
type WalletFutureGetResponse ¶
type WalletFutureGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *WalletFutureSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseWalletFutureGetResponse ¶
func ParseWalletFutureGetResponse(rsp *http.Response) (*WalletFutureGetResponse, error)
ParseWalletFutureGetResponse parses an HTTP response from a WalletFutureGetWithResponse call
func (WalletFutureGetResponse) Status ¶
func (r WalletFutureGetResponse) Status() string
Status returns HTTPResponse.Status
func (WalletFutureGetResponse) StatusCode ¶
func (r WalletFutureGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type WalletFutureSuccess ¶
type WalletFutureSuccess struct { // FutureTradeLimit 新規建玉可能額 FutureTradeLimit *float64 `json:"FutureTradeLimit,omitempty"` // MarginRequirement 必要証拠金額<br>※銘柄指定の場合のみ。<br>※銘柄が指定されなかった場合、空を返す。 MarginRequirement *float64 `json:"MarginRequirement,omitempty"` }
WalletFutureSuccess defines model for WalletFutureSuccess.
type WalletMarginGetParams ¶
type WalletMarginGetParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
WalletMarginGetParams defines parameters for WalletMarginGet.
type WalletMarginGetResponse ¶
type WalletMarginGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *WalletMarginSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseWalletMarginGetResponse ¶
func ParseWalletMarginGetResponse(rsp *http.Response) (*WalletMarginGetResponse, error)
ParseWalletMarginGetResponse parses an HTTP response from a WalletMarginGetWithResponse call
func (WalletMarginGetResponse) Status ¶
func (r WalletMarginGetResponse) Status() string
Status returns HTTPResponse.Status
func (WalletMarginGetResponse) StatusCode ¶
func (r WalletMarginGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type WalletMarginSuccess ¶
type WalletMarginSuccess struct { // CashOfConsignmentDepositRate 現金委託保証金率<br>※銘柄指定の場合のみ。<br>※銘柄が指定されなかった場合、Noneを返す。 CashOfConsignmentDepositRate *float64 `json:"CashOfConsignmentDepositRate,omitempty"` // ConsignmentDepositRate 委託保証金率<br>※銘柄指定の場合のみ。<br>※銘柄が指定されなかった場合、Noneを返す。 ConsignmentDepositRate *float64 `json:"ConsignmentDepositRate,omitempty"` // DepositkeepRate 保証金維持率<br>※銘柄指定の場合のみ<br>※銘柄が指定されなかった場合、0.0を返す。 DepositkeepRate *float64 `json:"DepositkeepRate,omitempty"` // MarginAccountWallet 信用新規可能額 MarginAccountWallet *float64 `json:"MarginAccountWallet,omitempty"` }
WalletMarginSuccess defines model for WalletMarginSuccess.
type WalletOptionGetParams ¶
type WalletOptionGetParams struct { // XAPIKEY トークン発行メソッドで取得した文字列 XAPIKEY string `json:"X-API-KEY"` }
WalletOptionGetParams defines parameters for WalletOptionGet.
type WalletOptionGetResponse ¶
type WalletOptionGetResponse struct { Body []byte HTTPResponse *http.Response JSON200 *WalletOptionSuccess JSON400 *ErrorResponse JSON401 *ErrorResponse JSON403 *ErrorResponse JSON404 *ErrorResponse JSON405 *ErrorResponse JSON413 *ErrorResponse JSON415 *ErrorResponse JSON429 *ErrorResponse JSON500 *ErrorResponse }
func ParseWalletOptionGetResponse ¶
func ParseWalletOptionGetResponse(rsp *http.Response) (*WalletOptionGetResponse, error)
ParseWalletOptionGetResponse parses an HTTP response from a WalletOptionGetWithResponse call
func (WalletOptionGetResponse) Status ¶
func (r WalletOptionGetResponse) Status() string
Status returns HTTPResponse.Status
func (WalletOptionGetResponse) StatusCode ¶
func (r WalletOptionGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type WalletOptionSuccess ¶
type WalletOptionSuccess struct { // MarginRequirement 必要証拠金額<br>※銘柄指定の場合のみ。<br>※銘柄が指定されなかった場合、空を返す。 MarginRequirement *float64 `json:"MarginRequirement,omitempty"` // OptionBuyTradeLimit 買新規建玉可能額 OptionBuyTradeLimit *float64 `json:"OptionBuyTradeLimit,omitempty"` // OptionSellTradeLimit 売新規建玉可能額 OptionSellTradeLimit *float64 `json:"OptionSellTradeLimit,omitempty"` }
WalletOptionSuccess defines model for WalletOptionSuccess.