File tree Expand file tree Collapse file tree 4 files changed +33
-28
lines changed
ExchangeSharp/API/Exchanges/BL3P Expand file tree Collapse file tree 4 files changed +33
-28
lines changed Original file line number Diff line number Diff line change 2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
4
using System . Threading . Tasks ;
5
- using ExchangeSharp . API . Exchanges . BL3P ;
6
- using ExchangeSharp . API . Exchanges . BL3P . Models ;
5
+ using ExchangeSharp . BL3P ;
7
6
using Newtonsoft . Json ;
8
7
using Newtonsoft . Json . Linq ;
9
8
10
9
// ReSharper disable once CheckNamespace
11
10
namespace ExchangeSharp
12
11
{
13
12
// ReSharper disable once InconsistentNaming
14
- public sealed class ExchangeBL3PAPI : ExchangeAPI
13
+ public sealed partial class ExchangeBL3PAPI : ExchangeAPI
15
14
{
16
15
public override string BaseUrl { get ; set ; } = "https://api.bl3p.eu/" ;
17
16
Original file line number Diff line number Diff line change 1
1
using Newtonsoft . Json ;
2
2
3
- namespace ExchangeSharp . API . Exchanges . BL3P . Models
3
+ namespace ExchangeSharp
4
4
{
5
- // ReSharper disable once InconsistentNaming
6
- public class BL3POrder
5
+ public sealed partial class ExchangeBL3PAPI : ExchangeAPI
7
6
{
8
- [ JsonProperty ( "price_int" ) ]
9
- [ JsonConverter ( typeof ( FixedIntDecimalConverter ) , 5 ) ]
10
- public decimal Price { get ; set ; }
7
+ // ReSharper disable once InconsistentNaming
8
+ class BL3POrder
9
+ {
10
+ [ JsonProperty ( "price_int" ) ]
11
+ [ JsonConverter ( typeof ( FixedIntDecimalConverter ) , 5 ) ]
12
+ public decimal Price { get ; set ; }
11
13
12
14
13
- [ JsonProperty ( "amount_int" ) ]
14
- [ JsonConverter ( typeof ( FixedIntDecimalConverter ) , 8 ) ]
15
- public decimal Amount { get ; set ; }
15
+ [ JsonProperty ( "amount_int" ) ]
16
+ [ JsonConverter ( typeof ( FixedIntDecimalConverter ) , 8 ) ]
17
+ public decimal Amount { get ; set ; }
16
18
17
- public ExchangeOrderPrice ToExchangeOrder ( )
18
- {
19
- return new ExchangeOrderPrice
19
+ public ExchangeOrderPrice ToExchangeOrder ( )
20
20
{
21
- Amount = Amount ,
22
- Price = Price
23
- } ;
21
+ return new ExchangeOrderPrice
22
+ {
23
+ Amount = Amount ,
24
+ Price = Price
25
+ } ;
26
+ }
24
27
}
25
28
}
26
29
}
Original file line number Diff line number Diff line change 1
1
using Newtonsoft . Json ;
2
2
3
- namespace ExchangeSharp . API . Exchanges . BL3P . Models
3
+ namespace ExchangeSharp
4
4
{
5
- // ReSharper disable once InconsistentNaming
6
- public class BL3POrderBook
5
+ public sealed partial class ExchangeBL3PAPI : ExchangeAPI
7
6
{
8
- [ JsonProperty ( "marketplace" ) ]
9
- public string MarketSymbol { get ; set ; }
7
+ // ReSharper disable once InconsistentNaming
8
+ class BL3POrderBook
9
+ {
10
+ [ JsonProperty ( "marketplace" ) ]
11
+ public string MarketSymbol { get ; set ; }
10
12
11
- [ JsonProperty ( "asks" ) ]
12
- public BL3POrder [ ] Asks { get ; set ; }
13
+ [ JsonProperty ( "asks" ) ]
14
+ public BL3POrder [ ] Asks { get ; set ; }
13
15
14
- [ JsonProperty ( "bids" ) ]
15
- public BL3POrder [ ] Bids { get ; set ; }
16
+ [ JsonProperty ( "bids" ) ]
17
+ public BL3POrder [ ] Bids { get ; set ; }
18
+ }
16
19
}
17
20
}
Original file line number Diff line number Diff line change 3
3
using System . Linq ;
4
4
using System . Threading . Tasks ;
5
5
6
- namespace ExchangeSharp . API . Exchanges . BL3P
6
+ namespace ExchangeSharp . BL3P
7
7
{
8
8
internal sealed class MultiWebsocketWrapper : IWebSocket
9
9
{
You can’t perform that action at this time.
0 commit comments