MercadoBitcoinAPI 1.0.1

Requires NuGet 1.0.0 or higher.

dotnet add package MercadoBitcoinAPI --version 1.0.1                
NuGet\Install-Package MercadoBitcoinAPI -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MercadoBitcoinAPI" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MercadoBitcoinAPI --version 1.0.1                
#r "nuget: MercadoBitcoinAPI, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MercadoBitcoinAPI as a Cake Addin
#addin nuget:?package=MercadoBitcoinAPI&version=1.0.1

// Install MercadoBitcoinAPI as a Cake Tool
#tool nuget:?package=MercadoBitcoinAPI&version=1.0.1                

MercadoBitcoinAPI - (.NetFramework | .NetStandard | .NetCore)

NuGet version (MercadoBitcoinAPI)

MERCADOBITCOIN API NÃO OFICIAL (UNOFFICIAL). "Não Possuímos nenhum vínculo com a empresa MERCADOBITCOIN."

(API .V4) MercadoBitcoin com essa API você faz consultas, balanço, cotação, saques, pagamentos, trades, transações, abrir ordens, fechar ordens, compra a mercado, vender a limite e outras mais na plataforma do MercadoBitcoin Confira!

  • Características
  • Faça pagamentos.
  • Veja os Book de ofertas.
  • Veja Tickes. (Candles)
  • Veja seu balanço.
  • Verifique suas ordens.
  • Abra ordens.
  • Encerre ordens ativas.
  • Compre Tokens
  • Compre Precatórios
  • Veja o histórico de suas transações.
  • Faça saques.
  • Gerencie seus ativos e dinheiro.
  • Fácil de usar.

#DIVIRTA-SE!

ALGUNS EXEMPLOS DE COMO USAR.

Visual Basic

  Using Client = MercadoBitcoinClient.Create(New ApiConfig With {.TAPI_ID = "Sua ID", .TAPI_SECRET = "Sua SecretKey"})
            Try

                '--------------- API DE DADOS ----------------

                Dim H = Await Client.GetFeesFromAsset(Asset:="BTC")
                Console.WriteLine(H.ToString)

                Dim GOB = Await Client.GetOrderBook(SymbolCurrency:="BTC-BRL", Limit:=10)
                Console.WriteLine(GOB.ToString)

                Dim LT = Await Client.ListTrades(SymbolCurrency:="BTC-BRL")
                Console.WriteLine(LT.ToString)

                Dim LC = Await Client.ListCandles(SymbolCurrency:="BTC-BRL", Resolution:="1h", [To]:=Date.Now, From:=Date.Now.AddDays(-1))
                Console.WriteLine(LC.ToString)

                Dim LS = Await Client.ListSymbol(SymbolCurrency:="BTC-BRL")
                Console.WriteLine(LS.ToString)

                Dim LTS = Await Client.ListTickers(SymbolCurrency:="BTC-BRL,LTC-BRL")
                Console.WriteLine(LTS.ToString)

                '-------------- API TRADER ACCOUNT --------------
                Dim AccountID = Await Client.ListAccount()
                Console.WriteLine(AccountID.Root.Item(0).Identificacao) 'Result: (xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end)

                Dim LA = Await Client.ListAccount()
                Console.WriteLine(LA.ToString)

                Dim LB = Await Client.ListBalance(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end")
                Console.WriteLine(LB.ToString)

                Dim LP = Await Client.ListPositions(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL")
                Console.WriteLine(LP.ToString)

                '--------------API TRADER WALLET ----------------

                Dim LD = Await Client.ListDeposits(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC", From:=Date.Now.AddYears(-3), [To]:=Date.Now)
                Console.WriteLine(LD.ToString)

                Dim WC = Await Client.WithdrawCoin(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC", AccountRef:="1", Address:="687fadsARQWE65sf4qFSDFQWsf654qwsASDF", Description:="description example", DestinationTag:="string", NetWork:="stellar", Quantity:="2.5", Fee:="2")
                Console.WriteLine(WC.ToString)

                Dim GW = Await Client.GetWithdrawCoin(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC", WithdrawID:="1")
                Console.WriteLine(GW.ToString)

                '-------------- API TRADER ---------------------

                Dim LO = Await Client.ListOrders(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL")
                Console.WriteLine(LO.ToString)

                Dim PO = Await Client.PlaceOrders(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL", Async:=True, Cost:=100, ExternalId:="134872873", LimitPrice:=9997, Quantity:="0.001", Side:="buy", StopPrice:=1000, Type:="limit")
                Console.WriteLine(PO.ToString)

                Dim CCO = Await Client.CancelOrder(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL", OrderID:="123546")
                Console.WriteLine(CCO.ToString)

                Dim CO = Await Client.CancelOrder(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL", OrderID:="123546")
                Console.WriteLine(CO.ToString)

                Dim GO = Await Client.GetOrder(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL", OrderID:="123546")
                Console.WriteLine(GO.ToString)

                Dim CC = Await Client.CancellAllOpenOrder(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", HasExecutions:=False, SymbolCurrency:="BTC-BRL")
                Console.WriteLine(CC.ToString)

                Dim LAO = Await Client.ListAllOrders(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", HasExecutions:=False, SymbolCurrency:="BTC-BRL", Status:="filled", Size:="1")
                Console.WriteLine(LAO.ToString)
            Catch ex As Exception
                Console.WriteLine(ex.Message)
            End Try
        End Using

C# CSharp

{
    using (var Client = MercadoBitcoinClient.Create(new ApiConfig() { TAPI_ID = "Sua ID", TAPI_SECRET = "Sua SecretKey" }))
    {
        try
        {

            // --------------- API DE DADOS ----------------

            var H = Await Client.GetFeesFromAsset(Asset:="BTC");
            Console.WriteLine(H.ToString);

            var GOB = Await Client.GetOrderBook(SymbolCurrency:="BTC-BRL", Limit:=10);
            Console.WriteLine(GOB.ToString);

            var LT = Await Client.ListTrades(SymbolCurrency:="BTC-BRL");
            Console.WriteLine(LT.ToString);

            var LC = Await Client.ListCandles(SymbolCurrency:="BTC-BRL", Resolution:="1h", [To]:=Date.Now, From:=Date.Now.AddDays(-1));
            Console.WriteLine(LC.ToString);

            var LS = Await Client.ListSymbol(SymbolCurrency:="BTC-BRL");
            Console.WriteLine(LS.ToString);

            var LTS = Await Client.ListTickers(SymbolCurrency:="BTC-BRL,LTC-BRL");
            Console.WriteLine(LTS.ToString);

            // -------------- API TRADER ACCOUNT --------------
            var AccountID = Await Client.ListAccount();
            Console.WriteLine(AccountID.Root.Item(0).Identificacao); // Result: (xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end)

            var LA = Await Client.ListAccount();
            Console.WriteLine(LA.ToString);

            var LB = Await Client.ListBalance(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end");
            Console.WriteLine(LB.ToString);

            var LP = Await Client.ListPositions(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL");
            Console.WriteLine(LP.ToString);

            // --------------API TRADER WALLET ----------------

            var LD = Await Client.ListDeposits(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC", From:=Date.Now.AddYears(-3), [To]:=Date.Now);
            Console.WriteLine(LD.ToString);

            var WC = Await Client.WithdrawCoin(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC", AccountRef:="1", Address:="687fadsARQWE65sf4qFSDFQWsf654qwsASDF", Description:="description example", DestinationTag:="string", NetWork:="stellar", Quantity:="2.5", Fee:="2");
            Console.WriteLine(WC.ToString);

            var GW = Await Client.GetWithdrawCoin(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC", WithdrawID:="1");
            Console.WriteLine(GW.ToString);

            // -------------- API TRADER ---------------------

            var LO = Await Client.ListOrders(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL");
            Console.WriteLine(LO.ToString);

            var PO = Await Client.PlaceOrders(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL", Async:=True, Cost:=100, ExternalId:="134872873", LimitPrice:=9997, Quantity:="0.001", Side:="buy", StopPrice:=1000, Type:="limit");
            Console.WriteLine(PO.ToString);

            var CCO = Await Client.CancelOrder(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL", OrderID:="123546");
            Console.WriteLine(CCO.ToString);

            var CO = Await Client.CancelOrder(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL", OrderID:="123546");
            Console.WriteLine(CO.ToString);

            var GO = Await Client.GetOrder(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", SymbolCurrency:="BTC-BRL", OrderID:="123546");
            Console.WriteLine(GO.ToString);

            var CC = Await Client.CancellAllOpenOrder(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", HasExecutions:=False, SymbolCurrency:="BTC-BRL");
            Console.WriteLine(CC.ToString);

            var LAO = Await Client.ListAllOrders(AccountID:="xfyh33gfbqeg1svo4on04lakkoc4ab82yhqad4h40wizxfennt3lt9qi5end", HasExecutions:=False, SymbolCurrency:="BTC-BRL", Status:="filled", Size:="1");
            Console.WriteLine(LAO.ToString);
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
        }
    }
}


Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 is compatible.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net45 is compatible.  net451 is compatible.  net452 is compatible.  net46 is compatible.  net461 is compatible.  net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 364 11/28/2022
1.0.0 326 11/28/2022

(API .V4) MercadoBitcoin com essa API você faz consultas, balanço, cotação, saques, pagamentos, trades, transações, abrir ordens, fechar ordens, compra a mercado, vender a limite e outras mais na plataforma do MercadoBitcoin Confira!
(ESTÁ API NÃO POSSÚI VÍNCULO COM A EMPRESA EXCHANGE MERCADOBITCOIN) NÃO OFICIAL.