This is an unofficial Go client for the Bitpanda Global Exchange. The official Bitpanda GE API documentation can be found here
Warning! Test your software extensively before deploying it. Otherwise, you may lose a lot of money.
- GET /account/balances
- GET /account/deposit/crypto/{currency_code}
- GET /account/deposit/fiat/EUR
- POST /account/deposit/crypto
- POST /account/withdraw/crypto
- GET /account/fees
- GET /account/orders
- POST /account/orders
- DELETE /account/orders
- GET /account/orders/{orderId}
- DELETE /account/orders/{orderId}
- GET /account/orders/{orderId}/trades
- GET /account/trades
- GET /account/trades/{trade_id}
- GET /account/trading-volume
- GET /currencies
- GET /candlesticks/{instrument_code}
- GET /fees
- GET /instruments
- GET /order-book/{instrument_code}
- GET /market-ticker
- GET /market-ticker/{instrument_code}
- GET /price-ticks/{instrument_code}
- GET /time
API Key is only needed for the secured API calls
import "gitlab.com/iotmod/gobitpanda"
c, err := gobitpanda.NewClient(gobitpanda.APIBase, YourAPIKey)
account, err := c.GetAccountBalances()
deposit, err := c.GetAccountDepositAddress(gobitpanda.CurrencyMIOTA)
newDeposit, err := c.NewAccountDepositAddress(&gobitpanda.CurrencyCode{Code: gobitpanda.CurrencyMIOTA})
newFiatDeposit, err := c.NewAccountFIATDeposit()
withdraw, err := c.Withdrawl(&gobitpanda.Withdraw{Currency: gobitpanda.CurrencyMIOTA, Amount: "33", Recipient: gobitpanda.Recipient{Address: "999999999...", DestinationTag: ""}})
fees, err := c.GetAccountFees()
accountFees, err := c.SetAccountFeeMode(true)
now := time.Now()
orders, err := c.GetAccountOrders(now.AddDate(0, -1, 0), now, gobitpanda.InstrumentMIOTAEUR, true, true, "", "")
order, err := c.GetAccountOrderByID("e6753f5b-81fa-4b36-8b50-83db34cf9998")
err := c.NewOrder(&gobitpanda.CreateOrder{InstrumentCode: gobitpanda.InstrumentMIOTAEUR, Side: gobitpanda.OrderSideBuy, Type: gobitpanda.OrderTypeLimit, Amount: "125", Price: "0.08"})
All orders:
orderIDs := c.CloseOrders()
Orders in one market:
orderIDs := c.CloseOrders(gobitpanda.InstrumentMIOTAEUR)
err := c.CloseOrderByID("e6753f5b-81fa-4b36-8b50-83db34cf9998")
now := time.Now()
trades, err := c.GetAccountTrades(now.AddDate(0, -1, 0), now, gobitpanda.InstrumentMIOTAEUR, "", "")
trade, err := GetAccountTradeByID("f56e6c14-dfa9-1bcc-98cd-c9ca517c1607")
trades, err := GetAccountTradesByOrderID("e6753f5b-81fa-4b36-8b50-83db34cf9998")
volume, err := c.GetAccountTradingVolume()
now := time.Now()
candlesticks, err := c.GetCandlesticks(gobitpanda.InstrumentMIOTAEUR, gobitpanda.UnitMinutes, gobitpanda.PeriodFifteenMinutes, now.AddDate(0, 0, -1), now)
currencies, err := c.GetCurrencies()
fees, err := c.GetFees()
instruments, err := c.GetInstruments()
time, err := c.GetTime()
orderBook, err := c.GetOrderBook(gobitpanda.InstrumentMIOTAEUR, gobitpanda.LevelTwo)
marketTicks, err := c.GetMarketTicker()
marketTick, err := c.GetMarketTickerByCode(gobitpanda.InstrumentMIOTAEUR)
now := time.Now()
priceTicks, err := c.GetPriceTicksByCode(gobitpanda.InstrumentMIOTAEUR, now.AddDate(0, 0, -1), now)
Please feel free to open a new issue or clone this repo, add your fixes/changes and create a pull request.