Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/ExchangeSharp/API/Exchanges/Bybit/ExchangeBybitInverseAPI.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Text;
using ExchangeSharp.Bybit;

namespace ExchangeSharp
{
[ApiName(ExchangeName.Bybit)]
public class ExchangeBybitInverseAPI : ExchangeBybitV5Base
{
protected override MarketCategory MarketCategory => MarketCategory.Inverse;
public override string BaseUrlWebSocket => "wss://stream.bybit.com/v5/public/inverse";
public ExchangeBybitInverseAPI()
{
}
public ExchangeBybitInverseAPI(bool isUnifiedAccount)
{
IsUnifiedAccount = isUnifiedAccount;
}
}
}
21 changes: 21 additions & 0 deletions src/ExchangeSharp/API/Exchanges/Bybit/ExchangeBybitLinearAPI.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using ExchangeSharp.Bybit;
using System;
using System.Collections.Generic;
using System.Text;

namespace ExchangeSharp
{
[ApiName(ExchangeName.Bybit)]
public class ExchangeBybitLinearAPI : ExchangeBybitV5Base
{
protected override MarketCategory MarketCategory => MarketCategory.Linear;
public override string BaseUrlWebSocket => "wss://stream.bybit.com/v5/public/linear";
public ExchangeBybitLinearAPI()
{
}
public ExchangeBybitLinearAPI(bool isUnifiedAccount)
{
IsUnifiedAccount = isUnifiedAccount;
}
}
}
21 changes: 21 additions & 0 deletions src/ExchangeSharp/API/Exchanges/Bybit/ExchangeBybitOptionAPI.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using ExchangeSharp.Bybit;
using System;
using System.Collections.Generic;
using System.Text;

namespace ExchangeSharp
{
[ApiName(ExchangeName.Bybit)]
public class ExchangeBybitOptionAPI : ExchangeBybitV5Base
{
protected override MarketCategory MarketCategory => MarketCategory.Option;
public override string BaseUrlWebSocket => "wss://stream.bybit.com/v5/public/option";
public ExchangeBybitOptionAPI()
{
}
public ExchangeBybitOptionAPI(bool isUnifiedAccount)
{
IsUnifiedAccount = isUnifiedAccount;
}
}
}
21 changes: 21 additions & 0 deletions src/ExchangeSharp/API/Exchanges/Bybit/ExchangeBybitSpotAPI.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using ExchangeSharp.Bybit;
using System;
using System.Collections.Generic;
using System.Text;

namespace ExchangeSharp
{
[ApiName(ExchangeName.Bybit)]
public class ExchangeBybitSpotAPI : ExchangeBybitV5Base
{
protected override MarketCategory MarketCategory => MarketCategory.Spot;
public override string BaseUrlWebSocket => "wss://stream.bybit.com/v5/public/spot";
public ExchangeBybitSpotAPI()
{
}
public ExchangeBybitSpotAPI(bool isUnified)
{
IsUnifiedAccount = isUnified;
}
}
}
Loading