-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCore.cs
More file actions
3074 lines (2803 loc) · 83.9 KB
/
Core.cs
File metadata and controls
3074 lines (2803 loc) · 83.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Runtime.CompilerServices;
using System.Threading;
using _003CPrivateImplementationDetails_003E_007B32439FAB_002DE055_002D4B6F_002D932A_002DAD6005671EA2_007D;
using TradingPlatform.BusinessLayer.Integration;
using TradingPlatform.BusinessLayer.Licence;
using TradingPlatform.BusinessLayer.LocalOrders;
using TradingPlatform.BusinessLayer.Media.Messengers;
using TradingPlatform.BusinessLayer.Settings.OTP;
using TradingPlatform.BusinessLayer.Utils;
using TradingPlatform.BusinessLayer.Utils.TradingProtection;
using 녴;
namespace TradingPlatform.BusinessLayer;
/// <summary>
/// The main entry point in the API. Core keeps access to all business logic entities and their properties:
/// connections, accounts, symbols, positions, orders, etc. Some of them can be reached through using managers or directly via specified collections.
/// You can always access the Core object via static Core.Instance property.
/// </summary>
[Published]
public class Core : IDisposable, IBusinessObjectsProvider
{
[Serializable]
[CompilerGenerated]
private sealed class 녴
{
public static readonly 녴 놓놕 = new 녴();
public static Func<Connection, IEnumerable<Symbol>> 놓뇊;
public static Func<Connection, IEnumerable<SymbolType>> 놓놋;
public static Func<Connection, IEnumerable<Account>> 놓녣;
public static Func<Connection, IEnumerable<Asset>> 놓녩;
public static Func<Connection, IEnumerable<Exchange>> 놓놤;
public static Func<Connection, IEnumerable<Order>> 놓논;
public static Func<Connection, IEnumerable<OrderType>> 놓녘;
public static Func<Connection, IEnumerable<Position>> 놓노;
public static Func<Connection, IEnumerable<ClosedPosition>> 놓녒;
public static Func<Connection, IEnumerable<CorporateAction>> 놓녕;
public static Func<Connection, IEnumerable<ReportType>> 놓녖;
public static Func<Connection, IEnumerable<AccountOperation>> 놇녴;
public static Func<Connection, IEnumerable<TradingSignal>> 놇놴;
public static Func<Connection, bool> 놇놂;
public static Func<Connection, bool> 놇놎;
public static Func<Connection, bool> 놇녞;
public static Func<Connection, bool> 놇놫;
public static Func<PlaceOrderRequestParameters, string> 놇녪;
public static Func<Connection, IEnumerable<DeliveredAsset>> 놇녶;
public static Func<Connection, bool> 놇녵;
public static Func<Connection, bool> 놇놭;
internal IEnumerable<Symbol> 녴(Connection P_0)
{
return P_0.BusinessObjects.Symbols;
}
internal IEnumerable<SymbolType> 놴(Connection P_0)
{
return P_0.BusinessObjects.SymbolTypes;
}
internal IEnumerable<Account> 놂(Connection P_0)
{
return P_0.BusinessObjects.Accounts;
}
internal IEnumerable<Asset> 놎(Connection P_0)
{
return P_0.BusinessObjects.Assets;
}
internal IEnumerable<Exchange> 녞(Connection P_0)
{
return P_0.BusinessObjects.Exchanges;
}
internal IEnumerable<Order> 놫(Connection P_0)
{
return P_0.BusinessObjects.Orders;
}
internal IEnumerable<OrderType> 녪(Connection P_0)
{
return P_0.BusinessObjects.OrderTypes;
}
internal IEnumerable<Position> 녶(Connection P_0)
{
return P_0.BusinessObjects.Positions;
}
internal IEnumerable<ClosedPosition> 녵(Connection P_0)
{
return P_0.BusinessObjects.ClosedPositions;
}
internal IEnumerable<CorporateAction> 놭(Connection P_0)
{
return P_0.BusinessObjects.CorporateActions;
}
internal IEnumerable<ReportType> 녲(Connection P_0)
{
return P_0.BusinessObjects.ReportTypes;
}
internal IEnumerable<AccountOperation> 뇋(Connection P_0)
{
return P_0.BusinessObjects.AccountOperations;
}
internal IEnumerable<TradingSignal> 놸(Connection P_0)
{
return P_0.BusinessObjects.TradingSignals;
}
internal bool 놿(Connection P_0)
{
return P_0.Connected;
}
internal bool 놄(Connection P_0)
{
return P_0.Connected;
}
internal bool 놰(Connection P_0)
{
return P_0.Connected;
}
internal bool 놓(Connection P_0)
{
return P_0.Connected;
}
internal string 녴(PlaceOrderRequestParameters P_0)
{
return P_0.ConnectionId;
}
internal IEnumerable<DeliveredAsset> 놇(Connection P_0)
{
return P_0.BusinessObjects.DeliveredAssets;
}
internal bool 뇅(Connection P_0)
{
if (P_0 != null)
{
string vendorName = P_0.VendorName;
if (vendorName == _26195AC7_002DD65B_002D4910_002DB963_002D637D18805E71.녵녖() || vendorName == _26195AC7_002DD65B_002D4910_002DB963_002D637D18805E71.놭녴() || vendorName == _26195AC7_002DD65B_002D4910_002DB963_002D637D18805E71.놭놴())
{
return true;
}
}
return false;
}
internal bool 놵(Connection P_0)
{
if (P_0 != null)
{
string vendorName = P_0.VendorName;
if (vendorName == _26195AC7_002DD65B_002D4910_002DB963_002D637D18805E71.녵녖() || vendorName == _26195AC7_002DD65B_002D4910_002DB963_002D637D18805E71.놭녴() || vendorName == _26195AC7_002DD65B_002D4910_002DB963_002D637D18805E71.놭놴())
{
return true;
}
}
return false;
}
}
[CompilerGenerated]
private sealed class 놴
{
public BusinessObjectInfo 놇녲;
internal bool 녴(Account P_0)
{
return P_0.Id == 놇녲.Id;
}
}
[CompilerGenerated]
private sealed class 놂
{
public GetSymbolRequestParameters 놇뇋;
internal bool 녴(Synthetic P_0)
{
return P_0.Id == 놇뇋.SymbolId;
}
internal bool 녴(HistoricalSymbol P_0)
{
return P_0.Id == 놇뇋.SymbolId;
}
}
[CompilerGenerated]
private sealed class 놎
{
public string 놇놸;
internal bool 녴(OrderType P_0)
{
return P_0.Id == 놇놸;
}
internal bool 놴(OrderType P_0)
{
return P_0.Id == 놇놸;
}
}
[CompilerGenerated]
private sealed class 녞
{
public string 놇놿;
internal bool 녴(Connection P_0)
{
return P_0.Id == 놇놿;
}
}
[CompilerGenerated]
private sealed class 놫
{
public ModifyOrderRequestParameters 놇놄;
internal bool 녴(Connection P_0)
{
return P_0.Id == 놇놄.ConnectionId;
}
}
[CompilerGenerated]
private sealed class 녪
{
public ClosePositionRequestParameters 놇놰;
internal bool 녴(Connection P_0)
{
return P_0.Id == 놇놰.ConnectionId;
}
}
[CompilerGenerated]
private sealed class 녶
{
public CancelOrderRequestParameters 놇놓;
internal bool 녴(Connection P_0)
{
return P_0.Id == 놇놓.ConnectionId;
}
}
[CompilerGenerated]
private sealed class 녵
{
public string 놇놇;
internal bool 녴(Connection P_0)
{
return P_0.Id == 놇놇;
}
}
[CompilerGenerated]
private sealed class 놭
{
public HistoricalSymbol 놇뇅;
internal bool 녴(HistoricalSymbol P_0)
{
return P_0.Id == 놇뇅.Id;
}
}
private static Core 녪녹;
[CompilerGenerated]
private readonly ConnectionsManager 녪녔;
[CompilerGenerated]
private readonly LoggerManager 녪녠;
[CompilerGenerated]
private readonly LicencesManager 녪놠;
[CompilerGenerated]
private readonly VendorManager 녪놟;
[CompilerGenerated]
private readonly HistoryAggregationManager 녪녓;
[CompilerGenerated]
private readonly VolumeAnalysisManager 녪녛;
[CompilerGenerated]
private readonly IndicatorManager 녪녽;
[CompilerGenerated]
private readonly StrategyManager 녪놏;
[CompilerGenerated]
private readonly OrderPlacingStrategiesManager 녪녥;
[CompilerGenerated]
private readonly MessengersManager 녪농;
[CompilerGenerated]
private readonly LocalOrdersManager 녪념;
[CompilerGenerated]
private readonly RulesManager 녪녨;
[CompilerGenerated]
private readonly SymbolsMappingManager 녪녺;
[CompilerGenerated]
private readonly CustomSessionsManager 녪놣;
[CompilerGenerated]
private readonly TimeUtils 녪녮;
[CompilerGenerated]
private readonly MailUtils 녪뇆;
[CompilerGenerated]
private readonly TradingProtector 녪뇉;
[CompilerGenerated]
private IBrandingInformation 녪뇍;
private TradingStatus 녪놙;
[CompilerGenerated]
private Action<TradingStatus> 녪녰;
[CompilerGenerated]
private 놃<int, CustomMessage> 녪놚;
[CompilerGenerated]
private bool 녪놹;
[CompilerGenerated]
private CustomAccountPropertiesProvider 녪놘;
[CompilerGenerated]
private Action<Account> 녪뇌;
[CompilerGenerated]
private Action<Symbol> 녪녷;
[CompilerGenerated]
private Action<Order> 녪녟;
[CompilerGenerated]
private Action<Order> 녪놱;
[CompilerGenerated]
private Action<Position> 녪놖;
[CompilerGenerated]
private Action<Position> 녪놝;
[CompilerGenerated]
private Action<ClosedPosition> 녪뇄;
[CompilerGenerated]
private Action<ClosedPosition> 녪녑;
[CompilerGenerated]
private Action<Trade> 녪놈;
[CompilerGenerated]
private Action<CorporateAction> 녪놬;
[CompilerGenerated]
private Action<OrderHistory> 녪놊;
[CompilerGenerated]
private AdvancedTradingOperations 녪놪;
[CompilerGenerated]
private Action<DeliveredAsset> 녪놌;
[CompilerGenerated]
private Action<DeliveredAsset> 녪놕;
[CompilerGenerated]
private Action<DealTicket> 녪뇊;
[CompilerGenerated]
private readonly SymbolsListManager 녪놋;
private readonly List<HistoricalSymbol> 녪녣;
[CompilerGenerated]
private Action<HistoricalSymbol> 녪녩;
[CompilerGenerated]
private Action<HistoricalSymbol> 녪놤;
[CompilerGenerated]
private Action<HistoricalSymbol> 녪논;
[CompilerGenerated]
private Action<Synthetic> 녪녘;
[CompilerGenerated]
private Action<Synthetic> 녪노;
[CompilerGenerated]
private Action<Synthetic> 녪녒;
[CompilerGenerated]
private readonly List<Synthetic> 녪녕 = new List<Synthetic>();
[CompilerGenerated]
private EventHandler<TradingSignalEventArgs> 녪녖;
[CompilerGenerated]
private Action<Alert> 녶녴;
[CompilerGenerated]
private Action<OTPHolder, string, string> 녶놴;
[CompilerGenerated]
private Action 녶놂;
private Timer 녶놎;
[CompilerGenerated]
private IBrowserFactory 녶녞;
[CompilerGenerated]
private IOAuthBrowserCreator 녶놫;
[CompilerGenerated]
private Func<string, string, bool> 녶녪;
[CompilerGenerated]
private EventHandler<RequestEventArgs> 녶녶;
[CompilerGenerated]
private EventHandler<PerformedRequestEventArgs> 녶녵;
/// <summary>
/// Gets a singleton instance of <see cref="T:TradingPlatform.BusinessLayer.Core" />. API entry point
/// </summary>
public static Core Instance
{
get
{
lock (typeof(Core))
{
if (녪녹 == null)
{
녪녹 = new Core();
}
}
return 녪녹;
}
}
/// <summary>
/// Gets an access to all created connections and manages them
/// </summary>
public ConnectionsManager Connections
{
[CompilerGenerated]
get
{
return 녪녔;
}
}
/// <summary>
/// Gets an access to the system logging mechanism
/// </summary>
public LoggerManager Loggers
{
[CompilerGenerated]
get
{
return 녪녠;
}
}
/// <summary>
/// Obtains licence rules for the current user
/// </summary>
[NotPublished]
public LicencesManager Licences
{
[CompilerGenerated]
get
{
return 녪놠;
}
}
/// <summary>
/// Gets an access to all available trading data vendors and creates them
/// </summary>
[NotPublished]
public VendorManager Vendors
{
[CompilerGenerated]
get
{
return 녪놟;
}
}
/// <summary>
/// Gets an access to the all available aggregation types
/// </summary>
[NotPublished]
public HistoryAggregationManager HistoryAggregations
{
[CompilerGenerated]
get
{
return 녪녓;
}
}
/// <summary>
/// Access to Volume Analysis calculations
/// </summary>
public VolumeAnalysisManager VolumeAnalysis
{
[CompilerGenerated]
get
{
return 녪녛;
}
}
/// <summary>
/// Gets an access to the all available indicators and creates them
/// </summary>
public IndicatorManager Indicators
{
[CompilerGenerated]
get
{
return 녪녽;
}
}
/// <summary>
/// Gets an access to the all available trading strategies and manages them
/// </summary>
public StrategyManager Strategies
{
[CompilerGenerated]
get
{
return 녪놏;
}
}
public OrderPlacingStrategiesManager OrderPlacingStrategies
{
[CompilerGenerated]
get
{
return 녪녥;
}
}
public MessengersManager Messengers
{
[CompilerGenerated]
get
{
return 녪농;
}
}
public LocalOrdersManager LocalOrders
{
[CompilerGenerated]
get
{
return 녪념;
}
}
/// <summary>
/// Gets a <see cref="T:TradingPlatform.BusinessLayer.Rule" /> permissions checking mechanism
/// </summary>
[NotPublished]
public RulesManager RulesManager
{
[CompilerGenerated]
get
{
return 녪녨;
}
}
public SymbolsMappingManager SymbolsMapping
{
[CompilerGenerated]
get
{
return 녪녺;
}
}
public CustomSessionsManager CustomSessions
{
[CompilerGenerated]
get
{
return 녪놣;
}
}
/// <summary>
/// Gets a time based conversion and synchronization mechanism
/// </summary>
public TimeUtils TimeUtils
{
[CompilerGenerated]
get
{
return 녪녮;
}
}
/// <summary>
/// Gets SMTP mail service for sending emails
/// </summary>
public MailUtils MailUtils
{
[CompilerGenerated]
get
{
return 녪뇆;
}
}
public TradingProtector TradingProtection
{
[CompilerGenerated]
get
{
return 녪뇉;
}
}
public IBrandingInformation BrandingInformation
{
[CompilerGenerated]
get
{
return 녪뇍;
}
[CompilerGenerated]
private set
{
녪뇍 = value;
}
}
public Version CurrentVersion => new Version(GetType().Assembly.GetName().Version.ToString(3));
/// <summary>
/// Represents current trading status
/// </summary>
public TradingStatus TradingStatus
{
get
{
return 녪놙;
}
set
{
녪놙 = value;
녪녰?.Invoke(value);
}
}
internal 놃<int, CustomMessage> CustomMessageProcessor
{
[CompilerGenerated]
get
{
return 녪놚;
}
[CompilerGenerated]
private set
{
녪놚 = value;
}
}
private bool AlreadyInitialized
{
[CompilerGenerated]
get
{
return 녪놹;
}
[CompilerGenerated]
set
{
녪놹 = value;
}
}
public CustomAccountPropertiesProvider CustomAccountPropertiesProvider
{
[CompilerGenerated]
get
{
return 녪놘;
}
[CompilerGenerated]
private set
{
녪놘 = value;
}
}
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.Symbol" />s from open connections
/// </summary>
public Symbol[] Symbols => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.Symbols).ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.SymbolType" />s from open connections
/// </summary>
public SymbolType[] SymbolTypes => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.SymbolTypes).Distinct().ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.Account" />s from open connections
/// </summary>
public Account[] Accounts => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.Accounts).ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.Asset" />s from open connections
/// </summary>
public Asset[] Assets => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.Assets).ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.Exchange" />s from open connections
/// </summary>
public Exchange[] Exchanges => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.Exchanges).ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.Order" />s from open connections
/// </summary>
public Order[] Orders => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.Orders).ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.OrderType" />s from open connections
/// </summary>
public OrderType[] OrderTypes => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.OrderTypes).ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.Position" />s from open connections
/// </summary>
public Position[] Positions => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.Positions).ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.ClosedPosition" />s from open connections
/// </summary>
public ClosedPosition[] ClosedPositions => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.ClosedPositions).ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.CorporateAction" />s from open connections
/// </summary>
public CorporateAction[] CorporateActions => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.CorporateActions).ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.ReportType" />s from open connections. Otherwise returns empty list
/// </summary>>
public ReportType[] ReportTypes => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.ReportTypes).ToArray();
public AccountOperation[] AccountOperations => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.AccountOperations).ToArray();
/// <summary>
/// Gets all available <see cref="T:TradingPlatform.BusinessLayer.TradingSignal" />s from open connections. Otherwise returns empty list
/// </summary>>
public TradingSignal[] TradingSignals => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.TradingSignals).ToArray();
public AdvancedTradingOperations AdvancedTradingOperations
{
[CompilerGenerated]
get
{
return 녪놪;
}
[CompilerGenerated]
private set
{
녪놪 = value;
}
}
public DeliveredAsset[] DeliveredAssets => Connections.Connected.SelectMany((Connection P_0) => P_0.BusinessObjects.DeliveredAssets).ToArray();
/// <summary>
/// Gets all previously configured <see cref="T:TradingPlatform.BusinessLayer.SymbolList" />s
/// </summary>
[NotPublished]
public SymbolList[] SymbolList => SymbolListManager.Items;
/// <summary>
/// Gets an access to <see cref="T:TradingPlatform.BusinessLayer.SymbolList" />s and manages them
/// </summary>
[NotPublished]
public SymbolsListManager SymbolListManager
{
[CompilerGenerated]
get
{
return 녪놋;
}
}
/// <summary>
/// Represent all available Historical Symbols
/// </summary>
[NotPublished]
public List<HistoricalSymbol> HistoricalSymbols => new List<HistoricalSymbol>(녪녣);
/// <summary>
/// Represent all available Synthetic items
/// </summary>
[NotPublished]
public List<Synthetic> Synthetics
{
[CompilerGenerated]
get
{
return 녪녕;
}
}
[NotPublished]
public IBrowserFactory BrowserFactory
{
[CompilerGenerated]
get
{
return 녶녞;
}
[CompilerGenerated]
set
{
녶녞 = value;
}
}
[NotPublished]
public IOAuthBrowserCreator OAuthBrowserCreator
{
[CompilerGenerated]
get
{
return 녶놫;
}
[CompilerGenerated]
set
{
녶놫 = value;
}
}
/// <summary>
/// Will be triggered when <see cref="P:TradingPlatform.BusinessLayer.Core.TradingStatus" /> changed
/// </summary>
public event Action<TradingStatus> OnTradingStatusChanged
{
[CompilerGenerated]
add
{
Action<TradingStatus> action = 녪녰;
Action<TradingStatus> action2;
do
{
action2 = action;
Action<TradingStatus> value2 = (Action<TradingStatus>)Delegate.Combine(action2, value);
action = Interlocked.CompareExchange(ref 녪녰, value2, action2);
}
while ((object)action != action2);
}
[CompilerGenerated]
remove
{
Action<TradingStatus> action = 녪녰;
Action<TradingStatus> action2;
do
{
action2 = action;
Action<TradingStatus> value2 = (Action<TradingStatus>)Delegate.Remove(action2, value);
action = Interlocked.CompareExchange(ref 녪녰, value2, action2);
}
while ((object)action != action2);
}
}
/// <summary>
/// Will be triggered when new <see cref="T:TradingPlatform.BusinessLayer.Account" /> added to the core
/// </summary>
public event Action<Account> AccountAdded
{
[CompilerGenerated]
add
{
Action<Account> action = 녪뇌;
Action<Account> action2;
do
{
action2 = action;
Action<Account> value2 = (Action<Account>)Delegate.Combine(action2, value);
action = Interlocked.CompareExchange(ref 녪뇌, value2, action2);
}
while ((object)action != action2);
}
[CompilerGenerated]
remove
{
Action<Account> action = 녪뇌;
Action<Account> action2;
do
{
action2 = action;
Action<Account> value2 = (Action<Account>)Delegate.Remove(action2, value);
action = Interlocked.CompareExchange(ref 녪뇌, value2, action2);
}
while ((object)action != action2);
}
}
/// <summary>
/// Will be triggered when new <see cref="T:TradingPlatform.BusinessLayer.Symbol" /> added to the core
/// </summary>
public event Action<Symbol> SymbolAdded
{
[CompilerGenerated]
add
{
Action<Symbol> action = 녪녷;
Action<Symbol> action2;
do
{
action2 = action;
Action<Symbol> value2 = (Action<Symbol>)Delegate.Combine(action2, value);
action = Interlocked.CompareExchange(ref 녪녷, value2, action2);
}
while ((object)action != action2);
}
[CompilerGenerated]
remove
{
Action<Symbol> action = 녪녷;
Action<Symbol> action2;
do
{
action2 = action;
Action<Symbol> value2 = (Action<Symbol>)Delegate.Remove(action2, value);
action = Interlocked.CompareExchange(ref 녪녷, value2, action2);
}
while ((object)action != action2);
}