-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e35d14a
commit acaac27
Showing
156 changed files
with
4,670 additions
and
1,973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace Terminal.Core.Models | ||
{ | ||
public class InstrumentArgs | ||
{ | ||
/// <summary> | ||
/// Symbol name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Security type | ||
/// </summary> | ||
public string Security { get; set; } | ||
|
||
/// <summary> | ||
/// Exchange | ||
/// </summary> | ||
public string Exchange { get; set; } | ||
|
||
/// <summary> | ||
/// Currency | ||
/// </summary> | ||
public string Currency { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
|
||
namespace Terminal.Core.Models | ||
{ | ||
public class OptionsArgs | ||
{ | ||
/// <summary> | ||
/// Symbol name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Min strike | ||
/// </summary> | ||
public double? MinPrice { get; set; } | ||
|
||
/// <summary> | ||
/// Max strike | ||
/// </summary> | ||
public double? MaxPrice { get; set; } | ||
|
||
/// <summary> | ||
/// Start date | ||
/// </summary> | ||
public DateTime MinDate { get; set; } | ||
|
||
/// <summary> | ||
/// End date | ||
/// </summary> | ||
public DateTime MaxDate { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Terminal.Core.Models | ||
{ | ||
public class OrdersArgs | ||
{ | ||
/// <summary> | ||
/// Order status | ||
/// </summary> | ||
public string Status { get; set; } | ||
|
||
/// <summary> | ||
/// Symbols | ||
/// </summary> | ||
public IList<string> Names { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
|
||
namespace Terminal.Core.Models | ||
{ | ||
public class PointsArgs | ||
{ | ||
/// <summary> | ||
/// Symbol name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Security type | ||
/// </summary> | ||
public string Security { get; set; } | ||
|
||
/// <summary> | ||
/// Start date | ||
/// </summary> | ||
public DateTime MinDate { get; set; } | ||
|
||
/// <summary> | ||
/// End date | ||
/// </summary> | ||
public DateTime MaxDate { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Terminal.Core.Models | ||
{ | ||
public class PositionsArgs | ||
{ | ||
/// <summary> | ||
/// Symbols | ||
/// </summary> | ||
public IList<string> Names { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Collections; | ||
using System.Collections.Specialized; | ||
using System.Web; | ||
|
||
namespace Terminal.Core.Extensions | ||
{ | ||
public static class HashtableExtensions | ||
{ | ||
public static T Get<T>(this Hashtable input, string index) | ||
{ | ||
return (T)(index is not null && input.ContainsKey(index) ? input[index] : default); | ||
} | ||
|
||
public static NameValueCollection Merge(this Hashtable source, params Hashtable[] maps) | ||
{ | ||
var response = HttpUtility.ParseQueryString(string.Empty); | ||
|
||
foreach (Hashtable map in maps ?? []) | ||
{ | ||
foreach (DictionaryEntry o in map ?? []) | ||
{ | ||
response[$"{o.Key}"] = $"{o.Value}"; | ||
} | ||
} | ||
|
||
return response; | ||
} | ||
} | ||
} |
Oops, something went wrong.