JKorf / Bittrex.Net

A C# .Net wrapper for the Bittrex web API including all features easily accessible and usable
MIT License
141 stars 62 forks source link

Help with vb format #49

Closed snrchang closed 6 years ago

snrchang commented 6 years ago

Hi just wondering if anyone could convert this to visual basic, im having a hard time with the syntax format.

using(var socketClient = new BittrexSocketClient()) { var subcribtionSuccess = socketClient.SubscribeToMarketDelta("BTC-ETH", data => { // Handle data });

socketClient.UnsubscribeFromStream(subcribtionSuccess.Result); // Unsubscribes a single sub
    socketClient.UnsubscribeAllStreams(); // Unsubscribes all subs on this client 

}

Thank you

JKorf commented 6 years ago

Hi, I've just created a new Nuget package with the order book functionality provided by @fritz-net. Do you still need help with this or can you use that?

snrchang commented 6 years ago

That does help alot, but still struggling to write that ocketClient.SubscribeToMarketDelta("BTC-ETH", data => { in vb. It weird syntax for converters to convert it seems. Thanks so much sir

JKorf commented 6 years ago

I don't program VB.Net myself, but isn't it something like:

socketClient.SubscribeToMarketDelta("BTC-ETH", Function(data as BittrexMarketSummary)
                                                      // Do something with data
                                               End Function)

Based on https://www.dotnetperls.com/lambda-vbnet

snrchang commented 6 years ago

Thanks so much, appreciate it.