exchanges

package
v0.0.0-...-e9fdc67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinanceMarkets

type BinanceMarkets struct {
	LastUpdateID int        `json:"lastUpdateId"`
	Bids         [][]string `json:"bids"`
	Asks         [][]string `json:"asks"`
}

BinanceMarkets is the response of the market depth query on Binance Exchange

type BithumbMarketData

type BithumbMarketData struct {
	Symbol string     `json:"symbol"`
	Bids   [][]string `json:"b"`
	Ver    string     `json:"ver"`
	Asks   [][]string `json:"s"`
}

type BithumbMarkets

type BithumbMarkets struct {
	Data      BithumbMarketData `json:"data"`
	Code      string            `json:"code"`
	Msg       string            `json:"msg"`
	Timestamp int64             `json:"timestamp"`
	StartTime interface{}       `json:"startTime"`
}

type BitrueMarkets

type BitrueMarkets struct {
	LastUpdateID int             `json:"lastUpdateId"`
	Bids         [][]interface{} `json:"bids"`
	Asks         [][]interface{} `json:"asks"`
}

BitrueMarkets is the response of the market depth query on Binance Exchange

type BitstampRate

type BitstampRate struct {
	High      string `json:"high"`
	Last      string `json:"last"`
	Timestamp string `json:"timestamp"`
	Bid       string `json:"bid"`
	Vwap      string `json:"vwap"`
	Volume    string `json:"volume"`
	Low       string `json:"low"`
	Ask       string `json:"ask"`
	Open      string `json:"open"`
}

BitstampRate is the response of the rates query on Bitstamp Exchange

type BittrexMarkets

type BittrexMarkets struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Result  struct {
		Buy []struct {
			Quantity float64 `json:"Quantity"`
			Rate     float64 `json:"Rate"`
		} `json:"buy"`
		Sell []struct {
			Quantity float64 `json:"Quantity"`
			Rate     float64 `json:"Rate"`
		} `json:"sell"`
	} `json:"result"`
}

BittrexMarkets is the response of the market depth query on Bittrex Exchange

type Crex24Markets

type Crex24Markets struct {
	BuyLevels []struct {
		Price  float64 `json:"price"`
		Volume float64 `json:"volume"`
	} `json:"buyLevels"`
	SellLevels []struct {
		Price  float64 `json:"price"`
		Volume float64 `json:"volume"`
	} `json:"sellLevels"`
}

Crex24Markets is the response of the market depth query on Crex24 Exchange

type GraviexMarkets

type GraviexMarkets struct {
	Timestamp int        `json:"timestamp"`
	Asks      [][]string `json:"asks"`
	Bids      [][]string `json:"bids"`
}

GraviexMarkets is the response of the market depth query on Graviex Exchange

type HitBTCRate

type HitBTCRate map[string]data

HitBTCRate is the response of the rates query on HitBTC Exchange

type KuCoinMarkets

type KuCoinMarkets struct {
	Code string `json:"code"`
	Data struct {
		Sequence string     `json:"sequence"`
		Asks     [][]string `json:"asks"`
		Bids     [][]string `json:"bids"`
		Time     int64      `json:"time"`
	} `json:"data"`
}

KuCoinMarkets is the response of the market depth query on KuCoin Exchange

type LukkiMarkets

type LukkiMarkets struct {
	Total string `json:"total"`
	Data  []struct {
		Direction int    `json:"direction"`
		Price     string `json:"price"`
		Amount    string `json:"amount"`
		Ticker    string `json:"ticker"`
	} `json:"data"`
	Page int `json:"page"`
}

LukkiMarkets is the response of the market depth query on Binance Exchange

type SouthXChangeMarkets

type SouthXChangeMarkets struct {
	BuyOrders []struct {
		Index  int     `json:"Index"`
		Amount float64 `json:"Amount"`
		Price  float64 `json:"Price"`
	} `json:"BuyOrders"`
	SellOrders []struct {
		Index  int     `json:"Index"`
		Amount float64 `json:"Amount"`
		Price  float64 `json:"Price"`
	} `json:"SellOrders"`
}

SouthXChangeMarkets is the response of the market depth query on SouthXChange Exchange

type StexMarkets

type StexMarkets struct {
	Success bool `json:"success"`
	Data    struct {
		Ask []struct {
			CurrencyPairID   int     `json:"currency_pair_id"`
			Amount           string  `json:"amount"`
			Price            string  `json:"price"`
			Amount2          string  `json:"amount2"`
			Count            int     `json:"count"`
			CumulativeAmount float64 `json:"cumulative_amount"`
		} `json:"ask"`
		Bid []struct {
			CurrencyPairID   int     `json:"currency_pair_id"`
			Amount           string  `json:"amount"`
			Price            string  `json:"price"`
			Amount2          string  `json:"amount2"`
			Count            int     `json:"count"`
			CumulativeAmount float64 `json:"cumulative_amount"`
		} `json:"bid"`
		AskTotalAmount float64 `json:"ask_total_amount"`
		BidTotalAmount float64 `json:"bid_total_amount"`
	} `json:"data"`
}

StexMarkets is the response of the market depth query on Stex Exchange

type StexTickers

type StexTickers struct {
	Success bool `json:"success"`
	Data    []struct {
		ID               int    `json:"id"`
		AmountMultiplier int    `json:"amount_multiplier"`
		CurrencyCode     string `json:"currency_code"`
		MarketCode       string `json:"market_code"`
		CurrencyName     string `json:"currency_name"`
		MarketName       string `json:"market_name"`
		Symbol           string `json:"symbol"`
		GroupName        string `json:"group_name"`
		GroupID          int    `json:"group_id"`
		Ask              string `json:"ask"`
		Bid              string `json:"bid"`
		Last             string `json:"last"`
		Open             string `json:"open"`
		Low              string `json:"low"`
		High             string `json:"high"`
		Volume           string `json:"volume"`
		VolumeQuote      string `json:"volumeQuote"`
		Count            string `json:"count"`
		Timestamp        int64  `json:"timestamp"`
		GroupPosition    int    `json:"group_position"`
	} `json:"data"`
}

StexTickers is the response of the market depth query on Stex Exchange

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL