Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
burakoner committed Oct 21, 2024
1 parent 0f88e79 commit 999c740
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion OKX.Api.Examples/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static async Task Main(string[] args)

#region WebSocket Api Client Examples
// OKX Socket Client
var ws = new OKXWebSocketApiClient();
var ws = new OkxWebSocketApiClient();
ws.SetApiCredentials("XXXXXXXX-API-KEY-XXXXXXXX", "XXXXXXXX-API-SECRET-XXXXXXXX", "XXXXXXXX-API-PASSPHRASE-XXXXXXXX");

// Subscription
Expand Down
4 changes: 2 additions & 2 deletions OKX.Api/Account/Clients/OkxAccountSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// <summary>
/// OKX WebSocket Api Trading Account Client
/// </summary>
public class OkxAccountSocketClient(OKXWebSocketApiClient root)
public class OkxAccountSocketClient(OkxWebSocketApiClient root)
{
// Internal
internal OKXWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiClient _ { get; } = root;

/// <summary>
/// Retrieve account information. Data will be pushed when triggered by events such as placing/canceling order, and will also be pushed in regular interval according to subscription granularity.
Expand Down
4 changes: 2 additions & 2 deletions OKX.Api/Algo/Clients/OkxAlgoSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// <summary>
/// OKX WebSocket Api Algo Trading Client
/// </summary>
public class OkxAlgoSocketClient(OKXWebSocketApiClient root)
public class OkxAlgoSocketClient(OkxWebSocketApiClient root)
{
// Internal
internal OKXWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiClient _ { get; } = root;

/// <summary>
/// Retrieve algo orders (includes trigger order, oco order, conditional order). Data will not be pushed when first subscribed. Data will only be pushed when triggered by events such as placing/canceling order.
Expand Down
4 changes: 2 additions & 2 deletions OKX.Api/Block/Clients/OkxBlockSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// <summary>
/// OKX WebSocket Api Block Trading Client
/// </summary>
public class OkxBlockSocketClient(OKXWebSocketApiClient root)
public class OkxBlockSocketClient(OkxWebSocketApiClient root)
{
// Internal
internal OKXWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiClient _ { get; } = root;

// TODO: Rfqs channel
// TODO: Quotes channel
Expand Down
4 changes: 2 additions & 2 deletions OKX.Api/CopyTrading/Clients/OkxCopyTradingSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// <summary>
/// OKX WebSocket Api Copy Trading Client
/// </summary>
public class OkxCopyTradingSocketClient(OKXWebSocketApiClient root)
public class OkxCopyTradingSocketClient(OkxWebSocketApiClient root)
{
// Internal
internal OKXWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiClient _ { get; } = root;

// WS / Copy trading notification channel
// WS / Lead trading notification channel
Expand Down
4 changes: 2 additions & 2 deletions OKX.Api/Funding/Clients/OKXFundingSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// <summary>
/// OKX WebSocket Api Funding Account Client
/// </summary>
public class OkxFundingSocketClient(OKXWebSocketApiClient root)
public class OkxFundingSocketClient(OkxWebSocketApiClient root)
{
// Internal
internal OKXWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiClient _ { get; } = root;

// TODO: Deposit info channel
// TODO: Withdrawal info channel
Expand Down
4 changes: 2 additions & 2 deletions OKX.Api/Grid/Clients/OkxGridSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// <summary>
/// OKX WebSocket Api Grid Trading Client
/// </summary>
public class OkxGridSocketClient(OKXWebSocketApiClient root)
public class OkxGridSocketClient(OkxWebSocketApiClient root)
{
// Internal
internal OKXWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiClient _ { get; } = root;

// TODO: WS / Spot grid algo orders channel
// TODO: WS / Contract grid algo orders channel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// OKX WebSocket Client
/// </summary>
public class OKXWebSocketApiClient : OkxBaseSocketClient
public class OkxWebSocketApiClient : OkxBaseSocketClient
{
/// <summary>
/// Trading Account Client
Expand Down Expand Up @@ -58,15 +58,15 @@ public class OKXWebSocketApiClient : OkxBaseSocketClient
/// <summary>
/// OKXWebSocketApiClient Constructor
/// </summary>
public OKXWebSocketApiClient() : this(null, new OkxWebSocketApiOptions())
public OkxWebSocketApiClient() : this(null, new OkxWebSocketApiOptions())
{
}

/// <summary>
/// OKXWebSocketApiClient Constructor
/// </summary>
/// <param name="options"></param>
public OKXWebSocketApiClient(OkxWebSocketApiOptions options) : this(null, options)
public OkxWebSocketApiClient(OkxWebSocketApiOptions options) : this(null, options)
{
}

Expand All @@ -75,7 +75,7 @@ public OKXWebSocketApiClient(OkxWebSocketApiOptions options) : this(null, option
/// </summary>
/// <param name="logger">Logger</param>
/// <param name="options">Options</param>
public OKXWebSocketApiClient(ILogger? logger, OkxWebSocketApiOptions options) : base(logger, options)
public OkxWebSocketApiClient(ILogger? logger, OkxWebSocketApiOptions options) : base(logger, options)
{
this.Public = new OkxPublicSocketClient(this);
this.Account = new OkxAccountSocketClient(this);
Expand Down
4 changes: 2 additions & 2 deletions OKX.Api/Public/Clients/OkxPublicSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// <summary>
/// OKX WebSocket Api Public Market Data Client
/// </summary>
public class OkxPublicSocketClient(OKXWebSocketApiClient root)
public class OkxPublicSocketClient(OkxWebSocketApiClient root)
{
// Internal
internal OKXWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiClient _ { get; } = root;

#region Market Data

Expand Down
4 changes: 2 additions & 2 deletions OKX.Api/RecurringBuy/Clients/OkxRecurringBuySocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// <summary>
/// OKX WebSocket Api RecurringBuy Client
/// </summary>
public class OkxRecurringBuySocketClient(OKXWebSocketApiClient root)
public class OkxRecurringBuySocketClient(OkxWebSocketApiClient root)
{
// Internal
internal OKXWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiOptions Options { get { return _.Options; } }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions OKX.Api/Spread/Clients/OkxSpreadSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// <summary>
/// OKX WebSocket Api Spread Trading Client
/// </summary>
public class OkxSpreadSocketClient(OKXWebSocketApiClient root)
public class OkxSpreadSocketClient(OkxWebSocketApiClient root)
{
// Internal
internal OKXWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiClient _ { get; } = root;

// TODO: WS / Place order
// TODO: WS / Amend order
Expand Down
4 changes: 2 additions & 2 deletions OKX.Api/Trade/Clients/OkxTradeSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/// <summary>
/// OKX WebSocket Api Trade Client
/// </summary>
public class OkxTradeSocketClient(OKXWebSocketApiClient root)
public class OkxTradeSocketClient(OkxWebSocketApiClient root)
{
// Internal
internal OKXWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiClient _ { get; } = root;
internal OkxWebSocketApiOptions Options { get { return _.Options; } }

/// <summary>
Expand Down

0 comments on commit 999c740

Please sign in to comment.