Documentation ¶
Index ¶
- type Account
- type AccountBalance
- type CryptoAccount
- type Executions
- type ExecutionsModels
- type InterestRates
- type Loan
- type LoanBid
- type LoanBids
- type Loans
- type Order
- type Orders
- type PriceLevels
- func (p *PriceLevels) GetBuyPriceLevelsFloat64() [][]float64
- func (p *PriceLevels) GetSellPriceLevelsFloat64() [][]float64
- func (p *PriceLevels) SortBuyPriceLevelsByPrice(order string) [][]float64
- func (p *PriceLevels) SortBuyPriceLevelsByQuontity() [][]float64
- func (p *PriceLevels) SortSellPriceLevelsByPrice(order string) [][]float64
- func (p *PriceLevels) SortSellPriceLevelsByQuontity() [][]float64
- type Product
- type Trade
- type Trades
- type TradingAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID uint64 `json:"id"` Currency string `json:"currency"` CurrencySymbol string `json:"currency_symbol"` Balance string `json:"balance"` PusherChannel string `json:"pusher_channel"` LowestOfferInterestRate string `json:"lowest_offer_interest_rate"` HighestOfferInterestRate string `json:"highest_offer_interest_rate"` ExchangeRate string `json:"exchange_rate"` CurrencyType string `json:"currency_type"` }
type AccountBalance ¶
type CryptoAccount ¶
type CryptoAccount struct { ID uint64 `json:"id"` Balance string `json:"balance"` Address string `json:"address"` Currency string `json:"currency"` CurrencySymbol string `json:"currency_symbol"` PusherChannel string `json:"pusher_channel"` MinimumWithdraw float64 `json:"minimum_withdraw"` LowestOfferInterestRate string `json:"lowest_offer_interest_rate"` HighestOfferInterestRate string `json:"highest_offer_interest_rate"` CurrencyType string `json:"currency_type"` }
type Executions ¶
type Executions struct { Models []*ExecutionsModels `json:"models"` CurrentPage int `json:"current_page"` TotalPages int `json:"total_pages"` }
type ExecutionsModels ¶
type InterestRates ¶
type InterestRates struct { Bids [][]string `json:"bids"` Asks []interface{} `json:"asks"` }
type Loan ¶
type Loan struct { ID uint64 `json:"id"` Quantity string `json:"quantity"` Rate string `json:"rate"` CreatedAt uint `json:"created_at"` LenderID uint `json:"lender_id"` BorrowerID uint `json:"borrower_id"` Status string `json:"status"` Currency string `json:"currency"` FundReloaned bool `json:"fund_reloaned"` }
type LoanBid ¶
type LoanBid struct { ID uint64 `json:"id"` BidaskType string `json:"bidask_type"` Quantity string `json:"quantity"` Currency string `json:"currency"` Side string `json:"side"` FilledQuantity string `json:"filled_quantity"` Status string `json:"status"` Rate string `json:"rate"` UserID uint `json:"user_id"` }
type Order ¶
type Order struct { ID uint64 `json:"id"` OrderType string `json:"order_type"` Quantity string `json:"quantity"` DiscQuantity string `json:"disc_quantity"` IcebergTotalQuantity string `json:"iceberg_total_quantity"` Side string `json:"side"` FilledQuantity string `json:"filled_quantity"` Price float64 `json:"price"` CreatedAt uint `json:"created_at"` UpdatedAt uint `json:"updated_at"` Status string `json:"status"` LeverageLevel uint `json:"leverage_level"` SourceExchange string `json:"source_exchange"` ProductID uint `json:"product_id"` MarginType interface{} `json:"margin_type"` TakeProfit interface{} `json:"take_profit"` StopLoss interface{} `json:"stop_loss"` TradingType string `json:"trading_type"` ProductCode string `json:"product_code"` FundingCurrency string `json:"funding_currency"` CryptoAccountID interface{} `json:"crypto_account_id"` CurrencyPairCode string `json:"currency_pair_code"` AveragePrice float64 `json:"average_price"` Target string `json:"target"` OrderFee float64 `json:"order_fee"` SourceAction string `json:"source_action"` UnwoundTradeID interface{} `json:"unwound_trade_id"` TradeID interface{} `json:"trade_id"` ClientOrderID interface{} `json:"client_order_id"` }
type PriceLevels ¶
type PriceLevels struct { BuyPriceLevels [][]json.Number `json:"buy_price_levels"` SellPriceLevels [][]json.Number `json:"sell_price_levels"` }
func (*PriceLevels) GetBuyPriceLevelsFloat64 ¶
func (p *PriceLevels) GetBuyPriceLevelsFloat64() [][]float64
func (*PriceLevels) GetSellPriceLevelsFloat64 ¶
func (p *PriceLevels) GetSellPriceLevelsFloat64() [][]float64
func (*PriceLevels) SortBuyPriceLevelsByPrice ¶
func (p *PriceLevels) SortBuyPriceLevelsByPrice(order string) [][]float64
func (*PriceLevels) SortBuyPriceLevelsByQuontity ¶
func (p *PriceLevels) SortBuyPriceLevelsByQuontity() [][]float64
func (*PriceLevels) SortSellPriceLevelsByPrice ¶
func (p *PriceLevels) SortSellPriceLevelsByPrice(order string) [][]float64
func (*PriceLevels) SortSellPriceLevelsByQuontity ¶
func (p *PriceLevels) SortSellPriceLevelsByQuontity() [][]float64
type Product ¶
type Product struct { ID uint64 `json:"id"` ProductType string `json:"product_type"` Code string `json:"code"` Name string `json:"name"` MarketAsk string `json:"market_ask"` MarketBid string `json:"market_bid"` Indicator int `json:"indicator"` Currency string `json:"currency"` CurrencyPairCode string `json:"currency_pair_code"` Symbol string `json:"symbol"` FiatMinimumWithdraw string `json:"fiat_minimum_withdraw"` PusherChannel string `json:"pusher_channel"` TakerFee string `json:"taker_fee"` MakerFee string `json:"maker_fee"` LowMarketBid string `json:"low_market_bid"` HighMarketAsk string `json:"high_market_ask"` Volume24H string `json:"volume_24h"` LastPrice24H string `json:"last_price_24h"` LastTradedPrice string `json:"last_traded_price"` LastTradedQuantity string `json:"last_traded_quantity"` QuotedCurrency string `json:"quoted_currency"` BaseCurrency string `json:"base_currency"` ExchangeRate string `json:"exchange_rate"` }
type Trade ¶
type Trade struct { ID uint64 `json:"id"` CurrencyPairCode string `json:"currency_pair_code"` Status string `json:"status"` Side string `json:"side"` MarginUsed string `json:"margin_used"` OpenQuantity string `json:"open_quantity"` CloseQuantity string `json:"close_quantity"` Quantity string `json:"quantity"` LeverageLevel uint `json:"leverage_level"` ProductCode string `json:"product_code"` ProductID uint `json:"product_id"` OpenPrice string `json:"open_price"` ClosePrice string `json:"close_price"` TraderID uint `json:"trader_id"` OpenPnl string `json:"open_pnl"` ClosePnl string `json:"close_pnl"` Pnl string `json:"pnl"` StopLoss string `json:"stop_loss"` TakeProfit string `json:"take_profit"` FundingCurrency string `json:"funding_currency"` CreatedAt uint `json:"created_at"` UpdatedAt uint `json:"updated_at"` CloseFee string `json:"close_fee"` TotalInterest string `json:"total_interest"` DailyInterest string `json:"daily_interest"` }
type TradingAccount ¶
type TradingAccount struct { ID uint64 `json:"id"` LeverageLevel uint `json:"leverage_level"` MaxLeverageLevel uint `json:"max_leverage_level"` Pnl string `json:"pnl"` Equity string `json:"equity"` Margin string `json:"margin"` FreeMargin string `json:"free_margin"` TraderID uint `json:"trader_id"` Status string `json:"status"` ProductCode string `json:"product_code"` CurrencyPairCode string `json:"currency_pair_code"` Position string `json:"position"` Balance string `json:"balance"` CreatedAt uint `json:"created_at"` UpdatedAt uint `json:"updated_at"` PusherChannel string `json:"pusher_channel"` MarginPercent string `json:"margin_percent"` ProductID uint `json:"product_id"` FundingCurrency string `json:"funding_currency"` }
Click to show internal directories.
Click to hide internal directories.