Skip to content

API Wrapper for the BitoPro crypto currency exchange written in .Net

License

Notifications You must be signed in to change notification settings

bitoex/bitopro-api-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

bitopro-api-csharp

C# Wrapper for the official Bitopro exchange API

Compatible with .NET 8.0

This repository provides a C# wrapper for the official Bitopro API, all REST and WEBSOCKET endpoints covered, and a best practice solution coupled with strongly typed responses and requests. It is built on .NET Framework

Feel free to raise issues and Pull Request to help improve the library. If you found this API useful, and you wanted to give back to Bitopro via our Telegram group here.

Documentation

Contribution

git https://github.com/bitoex/bitopro-api-csharp.git
  • Navigate to Program.cs
  • Add your own Private and Secret keys
  • Play around with the API

Features

  • Simple, Configurable, Extendable
  • Rate limiting, 600 requests per minute per IP
  • dotnet standard, 8.0 support
  • Bitopro WebSockets
  • Console app with examples ready to launch (provide API keys)

Examples

All examples are available to play around with within the repositorys Console application which can be found in Program.cs.

Usage

Code examples below, or clone the repository and run the project.

Creating a Client

General usage just requires setting up the client with your credentials, and then calling the Client as necessary.

// Build out a client, provide a logger, and more configuration options, or even your own APIProcessor implementation
var bitopro = new BitoproRestApi(API_KEY, API_SECRET);

//You an also specify symbols like this.
var string SYMBOL = "BTC_USDT";
dynamic response;
response = await bitopro.GetCurrencies();

Creating a WebSocket Client

For WebSocket endpoints, just instantiate the BitoproWebsocket. You can use a using block or manual management.

// [PUBLIC] GET Order book
var bitoproWsOrderBook = new BitoproOrderBookWebsocket(symbolsLimit);
bitoproWsOrderBook.On_Receive_Message += Receive_WsMessage;
bitoproWsOrderBook.InitWebsocket();

static void Receive_WsMessage(string message)
{
    Utils.Logger.Info(message);
}

About

API Wrapper for the BitoPro crypto currency exchange written in .Net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages