Documentation ¶
Index ¶
- Constants
- func NewBitFlyerBalanceMockRepository() repository.BalanceRepository
- func NewBitFlyerBalanceRepository(apiClient *Client) repository.BalanceRepository
- func NewBitflyerOrderMockRepository() repository.OrderRepository
- func NewBitflyerOrderRepository(apiClient *Client) repository.OrderRepository
- func NewBitflyerTickerMockRepository() repository.TickerRepository
- func NewBitflyerTickerRepository(apiClient *Client) repository.TickerRepository
- type Balance
- type BoardState
- type Client
- type OrderSide
- type OrderState
- type ResponseSendChildOrder
- type Ticker
Constants ¶
View Source
const TimestampFormat = "2006-01-02T15:04:05"
Variables ¶
This section is empty.
Functions ¶
func NewBitFlyerBalanceMockRepository ¶
func NewBitFlyerBalanceMockRepository() repository.BalanceRepository
func NewBitFlyerBalanceRepository ¶
func NewBitFlyerBalanceRepository(apiClient *Client) repository.BalanceRepository
func NewBitflyerOrderMockRepository ¶
func NewBitflyerOrderMockRepository() repository.OrderRepository
func NewBitflyerOrderRepository ¶
func NewBitflyerOrderRepository(apiClient *Client) repository.OrderRepository
func NewBitflyerTickerMockRepository ¶
func NewBitflyerTickerMockRepository() repository.TickerRepository
func NewBitflyerTickerRepository ¶
func NewBitflyerTickerRepository(apiClient *Client) repository.TickerRepository
Types ¶
type BoardState ¶
type BoardState string
板の状態
const ( BoardStateRunning BoardState = "RUNNING" // 通常稼働中 BoardStateClosed BoardState = "CLOSED" // 取引停止中 BoardStateStarting BoardState = "STARTING" // 再起動中 BoardStatePreopen BoardState = "PREOPEN" // 板寄せ中 BoardStateCircuitBreak BoardState = "CIRCUIT BREAK" // サーキットブレイク発動中 BoardStateAwaitingSQ BoardState = "AWAITING SQ" // Lightning Futures の取引終了後 SQ(清算値)の確定前 BoardStateMatured BoardState = "MATURED" // Lightning Futures の満期に到達 )
type OrderState ¶
type OrderState string
const ( OrderStateActive OrderState = "ACTIVE" // オープンな注文 OrderStateCompleted OrderState = "COMPLETED" // 全額が取引完了した注文 OrderStateCanceled OrderState = "CANCELED" // キャンセルした注文 OrderStateExpired OrderState = "EXPIRED" // 有効期限に到達したため取り消された注文 OrderStateRejected OrderState = "REJECTED" // 失敗した注文 )
type ResponseSendChildOrder ¶
type ResponseSendChildOrder struct {
ChildOrderAcceptanceID string `json:"child_order_acceptance_id"`
}
type Ticker ¶
type Ticker struct { ProductCode string `json:"product_code"` State BoardState `json:"state"` Timestamp string `json:"timestamp"` TickID int `json:"tick_id"` BestBid float64 `json:"best_bid"` BestAsk float64 `json:"best_ask"` BestBidSize float64 `json:"best_bid_size"` BestAskSize float64 `json:"best_ask_size"` TotalBidDepth float64 `json:"total_bid_depth"` TotalAskDepth float64 `json:"total_ask_depth"` MarketBidSize float64 `json:"market_bid_size"` MarketAskSize float64 `json:"market_ask_size"` Ltp float64 `json:"ltp"` Volume float64 `json:"volume"` VolumeByProduct float64 `json:"volume_by_product"` }
Click to show internal directories.
Click to hide internal directories.