Documentation ¶
Index ¶
- Constants
- type Account
- type BTCI
- type BT_I
- type Balance
- type Bidask
- type BithumbRequester
- func (b *BithumbRequester) CancelOrder(orderCurrency Currency, paymentCurrency Currency, orderId string, order string) error
- func (b *BithumbRequester) GetAccount(orderCurrency Currency, paymentCurrency Currency) (Account, error)
- func (b *BithumbRequester) GetAssetsStatus(orderCurrency Currency) (bool, bool, error)
- func (b *BithumbRequester) GetBTCI() (BTCI, time.Time, error)
- func (b *BithumbRequester) GetBalance(orderCurrency Currency) (map[Currency]*Balance, error)
- func (b *BithumbRequester) GetCandleStick(orderCurreny Currency, paymentCurrency Currency, chartInterval TimeInterval) ([]OneCandleStick, error)
- func (b *BithumbRequester) GetOrder(orderCurrency Currency, paymentCurrency Currency, count int, date ...time.Time) ([]Order, error)
- func (b *BithumbRequester) GetOrderDetail(orderCurrency Currency, paymentCurrency Currency, orderId string) (OrderDetail, error)
- func (b *BithumbRequester) GetOrderbook(orderCurrency Currency, paymentCurrency Currency) (map[Currency]Orderbook, time.Time, error)
- func (b *BithumbRequester) GetTicker(orderCurrency Currency, paymentCurrency Currency) (map[Currency]Ticker, time.Time, error)
- func (b *BithumbRequester) GetTradableCoinList() []Currency
- func (b *BithumbRequester) GetTransactionHistory(orderCurrency Currency, paymentCurrency Currency) ([]OneTransaction, error)
- func (b *BithumbRequester) GetTransactions(orderCurrency Currency, paymentCurrency Currency, search SearchType, ...) ([]Transaction, error)
- func (b *BithumbRequester) GetUserTicker(orderCurrency Currency, paymentCurrency Currency) (UserTicker, error)
- func (b *BithumbRequester) GetWalletAddress(orderCurrency Currency) (string, error)
- func (b *BithumbRequester) MarketBuy(orderCurrency Currency, paymentCurrency Currency, amount float64) (string, error)
- func (b *BithumbRequester) MarketSell(orderCurrency Currency, paymentCurrency Currency, amount float64) (string, error)
- func (b *BithumbRequester) PlaceOrder(orderCurrency Currency, paymentCurrency Currency, amount float64, ...) (string, error)
- func (b *BithumbRequester) StopLimit(orderCurrency Currency, paymentCurrency Currency, watchPrice float64, ...) (string, error)
- func (b *BithumbRequester) WithDrawCoin(orderCurrency Currency, amount float64, address string, ...) error
- func (b *BithumbRequester) WithdrawKRW(account string, price int) error
- type Currency
- type OneCandleStick
- type OneTransaction
- type Order
- type OrderDetail
- type Orderbook
- type RawCandleStick
- type SearchType
- type SingleOrderDetail
- type Ticker
- type TimeInterval
- type Transaction
- type UserTicker
Constants ¶
View Source
const ( AAVE Currency = "aave" ABT Currency = "abt" ADA Currency = "ada" ADD Currency = "add" ADP Currency = "adp" AE Currency = "ae" AION Currency = "aion" ALGO Currency = "algo" AMO Currency = "amo" ANKR Currency = "ankr" ANV Currency = "anv" ANW Currency = "anw" AOA Currency = "aoa" APIS Currency = "apis" APIX Currency = "apix" APM Currency = "apm" ARN Currency = "arn" ARPA Currency = "arpa" ATD Currency = "atd" ATOM Currency = "atom" AUTO Currency = "auto" AWO Currency = "awo" BAL Currency = "bal" BASIC Currency = "basic" BAT Currency = "bat" BCD Currency = "bcd" BCH Currency = "bch" BCHA Currency = "bcha" BEL Currency = "bel" BHP Currency = "bhp" BHPC Currency = "bhpc" BIOT Currency = "biot" BLACK Currency = "black" BLY Currency = "bly" BNP Currency = "bnp" BOA Currency = "boa" BORA Currency = "bora" BSV Currency = "bsv" BTC Currency = "btc" BTG Currency = "btg" BTT Currency = "btt" BXA Currency = "bxa" BZNT Currency = "bznt" CBK Currency = "cbk" CENNZ Currency = "cennz" CHL Currency = "chl" CHR Currency = "chr" CMT Currency = "cmt" COMP Currency = "comp" CON Currency = "con" COS Currency = "cos" COSM Currency = "cosm" CRO Currency = "cro" CTXC Currency = "ctxc" CVC Currency = "cvc" CVT Currency = "cvt" DAC Currency = "dac" DACC Currency = "dacc" DAD Currency = "dad" DASH Currency = "dash" DOT Currency = "dot" DVC Currency = "dvc" DVP Currency = "dvp" EGG Currency = "egg" EL Currency = "el" ELF Currency = "elf" EM Currency = "em" ENJ Currency = "enj" EOS Currency = "eos" EOSDAC Currency = "eosdac" ETC Currency = "etc" ETH Currency = "eth" ETHOS Currency = "ethos" ETZ Currency = "etz" EVT369L Currency = "evt369l" EVZ Currency = "evz" FAB Currency = "fab" FCT Currency = "fct" FIT Currency = "fit" FLETA Currency = "fleta" FNB Currency = "fnb" FX Currency = "fx" FZZ Currency = "fzz" GLM Currency = "glm" GOM2 Currency = "gom2" GRT Currency = "grt" GTO Currency = "gto" GXC Currency = "gxc" HC Currency = "hc" HDAC Currency = "hdac" HIVE Currency = "hive" HORUS Currency = "horus" HSR Currency = "hsr" HYC Currency = "hyc" ICX Currency = "icx" INS Currency = "ins" IOST Currency = "iost" IPX Currency = "ipx" ITC Currency = "itc" ITG Currency = "itg" JST Currency = "jst" KEOS Currency = "keos" KKKK Currency = "kkkk" KNC Currency = "knc" LAMB Currency = "lamb" LBA Currency = "lba" LINK Currency = "link" LOOM Currency = "loom" LRC Currency = "lrc" LTC Currency = "ltc" LUNA Currency = "luna" MAN Currency = "man" MBL Currency = "mbl" MCI Currency = "mci" MCO Currency = "mco" MEETONE Currency = "meetone" META Currency = "meta" MIR Currency = "mir" MITH Currency = "mith" MIX Currency = "mix" MLK Currency = "mlk" MTL Currency = "mtl" MVC Currency = "mvc" MXC Currency = "mxc" NEWS Currency = "news" NPXS Currency = "npxs" OBSR Currency = "obsr" OCN Currency = "ocn" OGO Currency = "ogo" OMG Currency = "omg" ONG Currency = "ong" ONT Currency = "ont" ONX Currency = "onx" ORBS Currency = "orbs" ORC Currency = "orc" PAY Currency = "pay" PCH Currency = "pch" PCM Currency = "pcm" PIVX Currency = "pivx" PLX Currency = "plx" POLA Currency = "pola" POLY Currency = "poly" POWR Currency = "powr" PPT Currency = "ppt" PST Currency = "pst" QBZ Currency = "qbz" QKC Currency = "qkc" QTCON Currency = "qtcon" QTUM Currency = "qtum" RDN Currency = "rdn" REN Currency = "ren" REP Currency = "rep" RINGX Currency = "ringx" RNT Currency = "rnt" ROM Currency = "rom" SALT Currency = "salt" SAND Currency = "sand" SNT Currency = "snt" SNX Currency = "snx" SOC Currency = "soc" SRM Currency = "srm" SSX Currency = "ssx" STEEM Currency = "steem" STRAX Currency = "strax" SUN Currency = "sun" SXP Currency = "sxp" TEMCO Currency = "temco" TFUEL Currency = "tfuel" THETA Currency = "theta" TMTG Currency = "tmtg" TRUE Currency = "true" TRV Currency = "trv" TRX Currency = "trx" UMA Currency = "uma" UNI Currency = "uni" VALOR Currency = "valor" VEN Currency = "ven" VET Currency = "vet" VSYS Currency = "vsys" VTHO Currency = "vtho" WAVES Currency = "waves" WAXP Currency = "waxp" WEMIX Currency = "wemix" WET Currency = "wet" WICC Currency = "wicc" WIN Currency = "win" WOM Currency = "wom" WOZX Currency = "wozx" WPX Currency = "wpx" WTC Currency = "wtc" XEM Currency = "xem" XLM Currency = "xlm" XMR Currency = "xmr" XNO Currency = "xno" XPR Currency = "xpr" XRP Currency = "xrp" XSR Currency = "xsr" XTZ Currency = "xtz" XVG Currency = "xvg" YFI Currency = "yfi" ZEC Currency = "zec" ZIL Currency = "zil" ZRX Currency = "zrx" KRW Currency = "krw" ALL Currency = "all" // -> 어떻게 짤 것인지 생각해봐야 함 Min1 TimeInterval = "1m" Min3 TimeInterval = "3m" Min5 TimeInterval = "5m" Min10 TimeInterval = "10m" Min30 TimeInterval = "30m" Hour1 TimeInterval = "1h" Hour6 TimeInterval = "6h" Hour12 TimeInterval = "12h" Hour24 TimeInterval = "24h" All SearchType = "0" BuyComplete SearchType = "1" SellComplete SearchType = "2" InWidrawal SearchType = "3" Deposit SearchType = "4" Withdraw SearchType = "5" InKRWDeposit SearchType = "9" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BithumbRequester ¶
type BithumbRequester struct {
// contains filtered or unexported fields
}
func NewBithumb ¶
func NewBithumb(connectKey string, secretKey string) *BithumbRequester
func (*BithumbRequester) CancelOrder ¶
func (*BithumbRequester) GetAccount ¶
func (b *BithumbRequester) GetAccount(orderCurrency Currency, paymentCurrency Currency) (Account, error)
func (*BithumbRequester) GetAssetsStatus ¶
func (b *BithumbRequester) GetAssetsStatus(orderCurrency Currency) (bool, bool, error)
func (*BithumbRequester) GetBalance ¶
func (b *BithumbRequester) GetBalance(orderCurrency Currency) (map[Currency]*Balance, error)
func (*BithumbRequester) GetCandleStick ¶
func (b *BithumbRequester) GetCandleStick(orderCurreny Currency, paymentCurrency Currency, chartInterval TimeInterval) ([]OneCandleStick, error)
func (*BithumbRequester) GetOrder ¶
func (b *BithumbRequester) GetOrder(orderCurrency Currency, paymentCurrency Currency, count int, date ...time.Time) ([]Order, error)
-> date에 값이 들어올 경우, 최측 하나만 사용
func (*BithumbRequester) GetOrderDetail ¶
func (b *BithumbRequester) GetOrderDetail(orderCurrency Currency, paymentCurrency Currency, orderId string) (OrderDetail, error)
func (*BithumbRequester) GetOrderbook ¶
func (*BithumbRequester) GetTradableCoinList ¶
func (b *BithumbRequester) GetTradableCoinList() []Currency
func (*BithumbRequester) GetTransactionHistory ¶
func (b *BithumbRequester) GetTransactionHistory(orderCurrency Currency, paymentCurrency Currency) ([]OneTransaction, error)
func (*BithumbRequester) GetTransactions ¶
func (b *BithumbRequester) GetTransactions(orderCurrency Currency, paymentCurrency Currency, search SearchType, offset_count ...int) ([]Transaction, error)
func (*BithumbRequester) GetUserTicker ¶
func (b *BithumbRequester) GetUserTicker(orderCurrency Currency, paymentCurrency Currency) (UserTicker, error)
func (*BithumbRequester) GetWalletAddress ¶
func (b *BithumbRequester) GetWalletAddress(orderCurrency Currency) (string, error)
TODO : Docs 쓸 때, 만약 주소가 없으면 정상 처리는 되나 아무 값도 리턴하지 않는다고 서술해야함.
func (*BithumbRequester) MarketSell ¶
func (*BithumbRequester) PlaceOrder ¶
func (*BithumbRequester) WithDrawCoin ¶
func (b *BithumbRequester) WithDrawCoin(orderCurrency Currency, amount float64, address string, destination ...interface{}) error
func (*BithumbRequester) WithdrawKRW ¶
func (b *BithumbRequester) WithdrawKRW(account string, price int) error
type OneCandleStick ¶
type OneTransaction ¶
type OrderDetail ¶
type RawCandleStick ¶
type SearchType ¶
type SearchType string
type SingleOrderDetail ¶
type TimeInterval ¶
type TimeInterval string
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.