Skip to content

Commit ac674fd

Browse files
authored
add trade stream for ApolloX (#748)
1 parent 0e81120 commit ac674fd

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using ExchangeSharp.BinanceGroup;
2+
using Newtonsoft.Json.Linq;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Text;
7+
using System.Threading.Tasks;
8+
9+
namespace ExchangeSharp
10+
{
11+
public sealed partial class ExchangeApolloXApi : BinanceGroupCommon
12+
{
13+
public override string BaseUrl { get; set; } = "https://fapi.apollox.finance";
14+
public override string BaseUrlWebSocket { get; set; } = "wss://fstream.apollox.finance";
15+
16+
public override string BaseUrlApi => $"{BaseUrl}/fapi/v1";
17+
}
18+
19+
public partial class ExchangeName { public const string ApolloX = "ApolloX"; }
20+
}

src/ExchangeSharp/API/Exchanges/BinanceGroup/BinanceGroupCommon.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace ExchangeSharp.BinanceGroup
2222
{
2323
public abstract class BinanceGroupCommon : ExchangeAPI
2424
{
25-
public string BaseUrlApi => $"{BaseUrl}/api/v3";
25+
public virtual string BaseUrlApi => $"{BaseUrl}/api/v3";
2626

2727
public string BaseUrlSApi => $"{BaseUrl}/sapi/v1";
2828

@@ -53,6 +53,7 @@ protected BinanceGroupCommon()
5353
NonceStyle = NonceStyle.UnixMilliseconds;
5454
NonceOffset = TimeSpan.FromSeconds(15); // 15 seconds are deducted from current UTCTime as base of the request time window
5555
MarketSymbolSeparator = string.Empty;
56+
MarketSymbolIsUppercase = false;
5657
WebSocketOrderBookType = WebSocketOrderBookType.DeltasOnly;
5758
ExchangeGlobalCurrencyReplacements["BCC"] = "BCH";
5859
}

0 commit comments

Comments
 (0)