Closed diogoribeirodev closed 3 years ago
Yes, feel free to use it's it written in .net standard so it would work with any flavor of .net.
But when i type the function on a C# class, he doesn't recognize her!
Did you follow the readme? You should just install the nuget package to the project you want to access it, then just call it.
i did, but when i try to call it, i get an error saying it doesnt exist
Scheetz @.***> escreveu no dia sexta, 9/04/2021 à(s) 01:19:
Did you follow the readme? You should just install the nuget package to the project you want to access it, then just call it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mscheetz/KuCoinApi.Net/issues/19#issuecomment-816316642, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOBM7KBQPFGICRBSKI2OIDTHZB27ANCNFSM42RQB6XQ .
I get this error when trying to iniciate: Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'IKuCoinDotNet' could not be found (are you missing a using directive or an assembly reference?) Kucoin C:\Users\ribei\Downloads\Kucoin\Kucoin.cs 30 Active
Diogo Ribeiro @.***> escreveu no dia sexta, 9/04/2021 à(s) 11:26:
i did, but when i try to call it, i get an error saying it doesnt exist
Scheetz @.***> escreveu no dia sexta, 9/04/2021 à(s) 01:19:
Did you follow the readme? You should just install the nuget package to the project you want to access it, then just call it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mscheetz/KuCoinApi.Net/issues/19#issuecomment-816316642, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOBM7KBQPFGICRBSKI2OIDTHZB27ANCNFSM42RQB6XQ .
I'll take a look in a couple hours. What version of .net is your app?
[image: image.png]
Scheetz @.***> escreveu no dia sexta, 9/04/2021 à(s) 12:00:
I'll take a look in a couple hours. What version of .net is your app?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mscheetz/KuCoinApi.Net/issues/19#issuecomment-816602739, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOBM7K4LENJQH6SXPAOFKTTH3M6XANCNFSM42RQB6XQ .
[image: image.png]
Diogo Ribeiro @.***> escreveu no dia sexta, 9/04/2021 à(s) 12:04:
[image: image.png]
Scheetz @.***> escreveu no dia sexta, 9/04/2021 à(s) 12:00:
I'll take a look in a couple hours. What version of .net is your app?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mscheetz/KuCoinApi.Net/issues/19#issuecomment-816602739, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOBM7K4LENJQH6SXPAOFKTTH3M6XANCNFSM42RQB6XQ .
Do you know what's the problem?
A sexta, 9/04/2021, 12:08, Diogo Ribeiro @.***> escreveu:
[image: image.png]
Diogo Ribeiro @.***> escreveu no dia sexta, 9/04/2021 à(s) 12:04:
[image: image.png]
Scheetz @.***> escreveu no dia sexta, 9/04/2021 à(s) 12:00:
I'll take a look in a couple hours. What version of .net is your app?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mscheetz/KuCoinApi.Net/issues/19#issuecomment-816602739, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOBM7K4LENJQH6SXPAOFKTTH3M6XANCNFSM42RQB6XQ .
I created a new Windows form project, .net framework 4.7.2.
Added the nuget package and called it up in the program.cs.
Here's a video of it: https://www.youtube.com/watch?v=tn4k0RkdI3Q
Thank you!
A sábado, 10/04/2021, 16:43, Scheetz @.***> escreveu:
I created a new Windows form project, .net framework 4.7.2.
Added the nuget package and called it up in the program.cs.
Here's a video of it: https://www.youtube.com/watch?v=tn4k0RkdI3Q
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mscheetz/KuCoinApi.Net/issues/19#issuecomment-817156024, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOBM7MRQ7NCFIY3PHOVBG3TIBW3NANCNFSM42RQB6XQ .
Did you get it working?
If i delete "await" the error disappears.
A sábado, 10/04/2021, 17:34, Diogo Ribeiro @.***> escreveu:
I get this
A sábado, 10/04/2021, 17:20, Scheetz @.***> escreveu:
Did you get it working?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mscheetz/KuCoinApi.Net/issues/19#issuecomment-817161397, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOBM7I7HCS2USRHV6Z4UBDTIB3EVANCNFSM42RQB6XQ .
i get his error when using var balances = await kucoin.GetBalances();
Severity Code Description Project File Line Suppression State Error CS4033 The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task'. Trading Bot C:\Users\ribei\Downloads\Trading Bot\API.cs 17 Active
but if i delete the "away" the error dissapears.
A sábado, 10/04/2021, 17:34, Diogo Ribeiro @.***> escreveu:
If i delete "await" the error disappears.
A sábado, 10/04/2021, 17:34, Diogo Ribeiro @.***> escreveu:
I get this
A sábado, 10/04/2021, 17:20, Scheetz @.***> escreveu:
Did you get it working?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mscheetz/KuCoinApi.Net/issues/19#issuecomment-817161397, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOBM7I7HCS2USRHV6Z4UBDTIB3EVANCNFSM42RQB6XQ .
All endpoints are async. You can run async from a sync method:
`
static class Program
{
///
static async void MainAsync()
{
var kucoin = new KuCoinDotNet();
var pair = "BTC-USDT";
var ticker = await kucoin.GetTicker(pair);
}
}
`
Thank you! One more question is this how you show the balances? because it doesnt show the balances but "Colecção" wich means Colection Note: the market_order function is working!!!!!! [image: image.png]
Scheetz @.***> escreveu no dia sábado, 10/04/2021 à(s) 18:59:
All endpoints are async. You can run async from a sync method: ` static class Program { ///
/// The main entry point for the application. /// [STAThread] static void Main() { Task.Run(() => MainAsync()); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); }
static async void MainAsync() { var kucoin = new KuCoinDotNet(); var pair = "BTC-USDT"; var ticker = await kucoin.GetTicker(pair); }
}
`
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mscheetz/KuCoinApi.Net/issues/19#issuecomment-817179268, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOBM7KB6RRYP5XVMDYWZITTICGYLANCNFSM42RQB6XQ .
Hi, i was wondering if am i able to use this code in a Windows Form Application(.NET Framework)?I am trying to build an application where the user can do everything he would do in the kucoin website/app! I am finding a hard time using the code.