-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/JKorf/Bybit.Net
- Loading branch information
Showing
6 changed files
with
104 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using CryptoExchange.Net.Attributes; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Bybit.Net.Enums | ||
{ | ||
/// <summary> | ||
/// Product type | ||
/// </summary> | ||
public enum ProductType | ||
{ | ||
/// <summary> | ||
/// Options | ||
/// </summary> | ||
[Map("OPTIONS")] | ||
Options, | ||
/// <summary> | ||
/// Derivatives | ||
/// </summary> | ||
[Map("DERIVATIVES")] | ||
Derivatives, | ||
/// <summary> | ||
/// Spot | ||
/// </summary> | ||
[Map("SPOT")] | ||
Spot | ||
} | ||
} |
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,36 @@ | ||
using Bybit.Net.Enums; | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Bybit.Net.Objects.Models.V5 | ||
{ | ||
internal record BybitDcpStatusWrapper | ||
{ | ||
[JsonProperty("dcpInfos")] | ||
public IEnumerable<BybitDcpStatus> Infos { get; set; } = Array.Empty<BybitDcpStatus>(); | ||
} | ||
|
||
/// <summary> | ||
/// Dcp status | ||
/// </summary> | ||
public record BybitDcpStatus | ||
{ | ||
/// <summary> | ||
/// Product types | ||
/// </summary> | ||
[JsonProperty("product")] | ||
public ProductType Product { get; set; } | ||
/// <summary> | ||
/// Is activated | ||
/// </summary> | ||
[JsonProperty("dcpStatus"), JsonConverter(typeof(BoolConverter))] | ||
public bool Activated { get; set; } | ||
/// <summary> | ||
/// Timewindow in seconds | ||
/// </summary> | ||
[JsonProperty("timeWindow")] | ||
public int? TimeWindow { get; set; } | ||
} | ||
} |