Skip to content

API wrapper for cryptocurrency exchanges impemented in golang

License

Notifications You must be signed in to change notification settings

dojinkimm/cryptoexchange-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptocurrency Exchange APIs in Go

TBD

Installation

go get -u github.com/dojinkimm/cryptoexchange-go

Usage

Public Information

cryptoClient := crypto_exchange.NewClient(nil)

// list current prices for given market codes
currPrices, err := cryptoClient.UpbitService.ListCurrentPriceByMarketCodes([]string{"KRW-BTC", "KRW-ETH", "BTC-ETH"})
if err != nil {
    logrus.Error(err)
}

Private Information

accessKey := "<--Add Your Access Key Here-->"
secretKey := "<--Add Your Secret Key Here-->"

cryptoClient := crypto_exchange.NewClient(
    nil,
    crypto_exchange.WithAccessKey(accessKey),
    crypto_exchange.WithSecretKey(secretKey),
)

// list account information for given accessKey and secretKey user
accounts, err := cryptoClient.UpbitService.ListAccounts()
if err != nil {
    logrus.Error(err)
}

Supported Cryptocurrency Exchanges

Cryptocurrency Exchange REST Supported Websocket Support
Upbit Yes No

Supported APIs

APIs Upbit
List All Accounts
List Tradable Market Codes
Get Current Price of Market Code
Order

About

API wrapper for cryptocurrency exchanges impemented in golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published