Categorygithub.com/Maszz/go-bitkub-sdk
modulepackage
0.4.0
Repository: https://github.com/maszz/go-bitkub-sdk.git
Documentation: pkg.go.dev

# README

go-bitkub-sdk

A Golang sdk for bitkub api

Installation

go get github.com/Maszz/go-bitkub-sdk

updating a package

go get -u github.com/Maszz/go-bitkub-sdk

Importing

import (
    "github.com/Maszz/go-bitkub-sdk"
)

API List

NameStatus
GET /api/statusImplemented(Tested)
GET /api/servertimeImplemented(Tested)
GET /api/market/symbolsImplemented(Tested)
GET /api/market/tickerImplemented(Tested)
GET /api/market/tradesImplemented(Tested)
GET /api/market/bidsImplemented(Tested)
GET /api/market/asksImplemented(Tested)
GET /api/market/booksImplemented(Tested)
GET /api/market/depthImplemented(Tested)
GET /tradingview/historyImplemented(Tested)
POST /api/market/walletImplemented(Tested)
POST /api/market/balancesImplemented(Tested)
POST /api/market/place-bidNot implemented(Depecated)
POST /api/market/place-askNot implemented(Depecated)
POST /api/market/place-ask-by-fiatNot implemented(Depecated)
POST /api/market/cancel-orderNot implemented(Depecated)
POST /api/market/my-open-ordersImplemented(Tested)
POST /api/market/my-orders-historyImplemented(Tested)
POST /api/market/order-infoImplemented(Tested)
POST /api/crypto/addressesImplemented(Tested)
POST /api/crypto/withdrawImplemented(Tested)
POST /api/crypto/deposit-historyImplemented(Tested)
POST /api/crypto/withdraw-historyImplemented(Tested)
POST /api/crypto/generate-addressCan't be implemented(Lack of document).
POST /api/fiat/accountsImplemented(Tested)
POST /api/fiat/withdrawImplemented(Tested)
POST /api/fiat/deposit-historyImplemented(Tested)
POST /api/fiat/withdraw-historyImplemented(Tested)
POST /api/market/wstokenImplemented(Tested)
POST /api/user/limitsImplemented(Tested)
POST /api/user/trading-creditsImplemented (Tested)
POST /api/market/v2/place-bidImplemented (Tested)
POST /api/market/v2/place-askImplemented (Tested)
POST /api/market/v2/cancel-orderImplemented (Tested)

Get started

Setup

Init client for API services.

client := bitkub.NewClient("api_key", "api_secret")

Simply call API in chain style. Call Do() in the end to send HTTP request. All responses return in go struct.

For more information about This library read the documentation

Create Sell Order

res, err := client.NewPlaceAskTx().Symbol(symbols.THB_BTC).Amount(0.001).OrderType(types.OrderTypeMarket).Do()
if err != nil {
		fmt.Println(err)
		return
	}
jsonEnc, _ := json.Marshal(res)
fmt.Println(string(jsonEnc))

Dependencies

Instead of using net/http, this library uses fasthttp as its HTTP client and utilizes sonic for JSON serialization and deserialization. However, if you prefer not to use these libraries or if your application is affected by any edge cases, future versions of this library may include an adapter to support external libraries for serializing, deserializing, and making HTTP requests.

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author