Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh install throws exception #2

Open
jonathan305 opened this issue Apr 16, 2021 · 0 comments
Open

Fresh install throws exception #2

jonathan305 opened this issue Apr 16, 2021 · 0 comments

Comments

@jonathan305
Copy link

jonathan305 commented Apr 16, 2021

System.IO.FileNotFoundException: 'Could not find file 'D:\Binance\binance-trader-csharp-master\binance-trader-csharp-master\bin\Debug\config.json'.'

Fix is simple include config.json file in project and set to always copy to output folder.

Thank you for this simple app my concern is performance is there limits to how often we can "pull" the order every three seconds is the default i see however are there limits that will cause exceptions if int.MaxValue is passed into GetOrderBook

client.GetOrderBook(symbol, int.MaxValue);

When called repeatedly with int.MaxValue GetOrderBook stops returning rows...
Added Log message after GetOrderBook invocation. Could this be Binance throttling the amount of data we can extract via API?

var orderBook = client.GetOrderBook(symbol, int.MaxValue);
InfoLog($"Returned {orderBook.Data.Asks.Count} Asks and {orderBook.Data.Bids.Count} Bids.");
4/17/2021 12:36:39 AM | INFO: buyPrice: 0.00000104 | sellPrice 0.00000103 | bid 0.00000103 | ask 0.00000104 | price 0.0000010504 | diff -0.0000000104

4/17/2021 12:36:39 AM | INFO: No open orders. Let's check the Order Book :D

4/17/2021 12:36:39 AM | INFO: No profit detected. Diff: -0.0000000104BTC

4/17/2021 12:36:41 AM | INFO: Connecting to Binance

4/17/2021 12:36:44 AM | INFO: Connecting to Binance

4/17/2021 12:36:47 AM | INFO: Connecting to Binance

4/17/2021 12:36:50 AM | INFO: Connecting to Binance

4/17/2021 12:36:53 AM | INFO: Connecting to Binance

4/17/2021 12:36:56 AM | INFO: Connecting to Binance

4/17/2021 12:36:59 AM | INFO: Connecting to Binance
4/17/2021 12:37:02 AM | INFO: Connecting to Binance
4/17/2021 12:37:05 AM | INFO: Connecting to Binance
4/17/2021 12:37:08 AM | INFO: Connecting to Binance

4/17/2021 12:37:11 AM | INFO: Connecting to Binance
4/17/2021 12:37:14 AM | INFO: Connecting to Binance
4/17/2021 12:37:17 AM | INFO: Connecting to Binance
4/17/2021 12:37:20 AM | INFO: Connecting to Binance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant