File tree Expand file tree Collapse file tree
Rules/Mode/Production/Exchange Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
55 <TargetFramework >netcoreapp3.1</TargetFramework >
6- <AssemblyVersion >0.1.2.0</AssemblyVersion >
7- <FileVersion >0.1.2.0</FileVersion >
8- <Version >0.1.2</Version >
6+ <AssemblyVersion >0.3.2.0</AssemblyVersion >
7+ <FileVersion >0.3.2.0</FileVersion >
8+ <Version >0.3.2</Version >
9+ <Authors >Tomasz Kowalczyk</Authors >
10+ <Company >CryptoDev.TV</Company >
11+ <Product >SolBo</Product >
12+ <Copyright >Tomasz Kowalczyk</Copyright >
13+ <PackageProjectUrl >https://cryptodev.tv</PackageProjectUrl >
14+ <RepositoryUrl >https://github.com/CryptoDevTV/SolBo</RepositoryUrl >
915 </PropertyGroup >
1016
1117 <ItemGroup >
Original file line number Diff line number Diff line change 11{
2- "version" : " 0.3.0 " ,
2+ "version" : " 0.3.2 " ,
33 "filename" : " solbo" ,
44 "intervalinminutes" : 1 ,
55 "notifications" : {
Original file line number Diff line number Diff line change 55 "Available" : [
66 {
77 "Id" : 1 ,
8- "Symbol" : " BCHSV -ETH" ,
8+ "Symbol" : " ALGO -ETH" ,
99 "BuyDown" : 0.00000200 ,
1010 "SellUp" : 0.00000300 ,
1111 "Average" : 5 ,
Original file line number Diff line number Diff line change @@ -28,20 +28,28 @@ public IRuleResult RuleExecuted(Solbot solbot)
2828 {
2929 var accountType = accountInfo . Data . Where ( a => a . Type == KucoinAccountType . Trade ) . ToList ( ) ;
3030
31- var q = accountType . FirstOrDefault ( q => q . Currency == solbot . Communication . Symbol . QuoteAsset ) ;
32- accountType . Remove ( q ) ; // because of BCHSV <> BSV
33- var b = accountType . FirstOrDefault ( ) ? . Available ;
31+ var quote = accountType . FirstOrDefault ( q => q . Currency == solbot . Communication . Symbol . QuoteAsset ) ;
32+ KucoinAccount basee = null ;
33+
34+ if ( solbot . Communication . Symbol . BaseAsset . ToUpper ( ) == "BSV" )
35+ {
36+ basee = accountType . FirstOrDefault ( q => q . Currency == "BCHSV" ) ;
37+ }
38+ else
39+ {
40+ basee = accountType . FirstOrDefault ( q => q . Currency == solbot . Communication . Symbol . BaseAsset ) ;
41+ }
3442
3543 if ( accountType . AnyAndNotNull ( ) )
3644 {
3745 solbot . Communication . AvailableAsset = new AvailableAssetMessage
3846 {
39- Quote = q . Available ,
40- Base = b ?? 0m
47+ Quote = quote . Available ,
48+ Base = basee . Available
4149 } ;
4250
43- baseMsg = $ "{ solbot . Communication . Symbol . BaseAsset } :{ b ?? 0m } ";
44- quoteMsg = $ "{ solbot . Communication . Symbol . QuoteAsset } :{ q . Available } ";
51+ baseMsg = $ "{ solbot . Communication . Symbol . BaseAsset } :{ basee . Available } ";
52+ quoteMsg = $ "{ solbot . Communication . Symbol . QuoteAsset } :{ quote . Available } ";
4553
4654 result = true ;
4755 }
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <TargetFramework >netcoreapp3.1</TargetFramework >
5+ <Version >0.3.2</Version >
6+ <RepositoryUrl >https://github.com/CryptoDevTV/SolBo</RepositoryUrl >
7+ <PackageProjectUrl >https://cryptodev.tv</PackageProjectUrl >
8+ <Copyright >Tomasz Kowalczyk</Copyright >
9+ <Company >CryptoDev.TV</Company >
10+ <Product >SolBo</Product >
11+ <Authors >Tomasz Kowalczyk</Authors >
512 </PropertyGroup >
613
714 <ItemGroup >
You can’t perform that action at this time.
0 commit comments