New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gitlab.com/iotmod/gobitpanda

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab.com/iotmod/gobitpanda

  • v0.2.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

Go client for Bitpanda Global Exchange REST API

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.

Coverage

Account (secured)

  • GET /account/balances
  • GET /deposit/crypto/{currency_code}
  • 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

Currencies

  • GET /currencies

Candlesticks

  • GET /candlesticks/{instrument_code}

Fees

  • GET /fees

Instruments

  • GET /instruments

Order-book

  • GET /order-book/{instrument_code}

Time

  • GET /time

Usage

New client

API Key is only needed for the secured API calls

import "gitlab.com/iotmod/gobitpanda"

c, err := gobitpanda.NewClient(gobitpanda.APIBase, YourAPIKey)

Get balances of an account (secured)

account, err := c.GetAccountBalances()

Get deposit address for an account by currency code (only crypto currency allowed) (secured)

deposit, err := c.GetAccountDepositAddress(gobitpanda.CurrencyMIOTA)

Create a deposit address for an account by currency code (only crypto currency allowed) (secured)

newDeposit, err := c.NewAccountDepositAddress(&gobitpanda.CurrencyCode{Code: gobitpanda.CurrencyMIOTA}) 

Returns deposit information for sepa payments (secured)

newFiatDeposit, err := c.NewAccountFIATDeposit()

Withdraw from an account (only crypto currency allowed) (secured)

withdraw, err := c.Withdrawl(&gobitpanda.Withdraw{Currency: gobitpanda.CurrencyMIOTA, Amount: "33", Recipient: gobitpanda.Recipient{Address: "999999999...", DestinationTag: ""}})

Get fee details for an account (secured)

fees, err := c.GetAccountFees()

Get orders of an account (secured)

now := time.Now()
orders, err := c.GetAccountOrders(now.AddDate(0, -1, 0), now, gobitpanda.InstrumentMIOTAEUR, true, true, "", "")

Get order of an account by it's ID (secured)

order, err := c.GetAccountOrderByID("e6753f5b-81fa-4b36-8b50-83db34cf9998")

Create a new order (secured)

err := c.NewOrder(&gobitpanda.CreateOrder{InstrumentCode: gobitpanda.InstrumentMIOTAEUR, Side: gobitpanda.OrderSideBuy, Type: gobitpanda.OrderTypeLimit, Amount: "125", Price: "0.08"})

Close all orders or only orders in one market (secured)

All orders:

orderIDs := c.CloseOrders()

Orders in one market:

orderIDs := c.CloseOrders(gobitpanda.InstrumentMIOTAEUR)

Close order by it's ID (secured)

err := c.CloseOrderByID("e6753f5b-81fa-4b36-8b50-83db34cf9998")

Get trades of an account (secured)

now := time.Now()
trades, err := c.GetAccountTrades(now.AddDate(0, -1, 0), now, gobitpanda.InstrumentMIOTAEUR, "", "")

Get trade by it's ID (secured)

trade, err := GetAccountTradeByID("f56e6c14-dfa9-1bcc-98cd-c9ca517c1607")

Get trades by an order ID (secured)

trades, err := GetAccountTradesByOrderID("e6753f5b-81fa-4b36-8b50-83db34cf9998")

Get account's trading volume (secured)

volume, err := c.GetAccountTradingVolume()

Get candlesticks

now := time.Now()
candlesticks, err := c.GetCandlesticks(gobitpanda.InstrumentMIOTAEUR, gobitpanda.UnitMinutes, gobitpanda.PeriodFifteenMinutes, now.AddDate(0, 0, -1), now)

Get available currencies

currencies, err := c.GetCurrencies()

Get fees

fees, err := c.GetFees()

Get instruments

instruments, err := c.GetInstruments()

Get time

time, err := c.GetTime()

Get order book

orderBook, err := c.GetOrderBook(gobitpanda.InstrumentMIOTAEUR, gobitpanda.LevelTwo)

Bugs and feature requests

Please feel free to open a new issue or clone this repo, add your fixes/changes and create a pull request.

FAQs

Package last updated on 23 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc