Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Add exchange GMO Coin #247

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 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
1 change: 1 addition & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
- ftx-us
- gateio
- gemini
- gmocoin
- hitbtc
- huobi
- huobi-futures
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ binance.subscribeLevel2Snapshots(market);
| FTX US | 1 | FtxUs | ✓ | ✓ | - | - | ✓\* | - | - |
| Gate.io | 3 | Gateio | ✓ | ✓ | - | - | ✓\* | - | - |
| Gemini | 1 | Gemini | - | ✓ | - | - | ✓\* | - | - |
| GMOCoin | 1 | GMOCoin | ✓ | ✓ | - | ✓ | - | - | - |
| HitBTC | 2 | HitBTC | ✓ | ✓ | ✓ | - | ✓\* | - | - |
| Huobi Global | 1 | Huobi | ✓ | ✓ | ✓ | ✓ | - | - | - |
| Huobi Global Futures | 1 | HuobiFutures | ✓ | ✓ | ✓ | ✓ | ✓\* | - | - |
Expand Down
81 changes: 81 additions & 0 deletions __tests__/exchanges/gmocoin-client.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
const { testClient } = require("../test-runner");
const GMOCoinClient = require("../../src/exchanges/gmocoin-client");

testClient({
clientFactory: () => new GMOCoinClient(),
clientName: "GMOCoinClient",
exchangeName: "GMOCoin",
markets: [
{
id: "BTC",
base: "BTC",
quote: "JPY",
},
{
id: "ETH",
base: "ETH",
quote: "JPY",
},
{
id: "BCH",
base: "BCH",
quote: "JPY",
},
{
id: "LTC",
base: "LTC",
quote: "JPY",
},
{
id: "XRP",
base: "XRP",
quote: "JPY",
},
],

testConnectEvents: false,
bmancini55 marked this conversation as resolved.
Show resolved Hide resolved
testDisconnectEvents: false,
testReconnectionEvents: false,
testCloseEvents: false,

hasTickers: true,
hasTrades: true,
hasCandles: false,
hasLevel2Snapshots: true,
hasLevel2Updates: false,
hasLevel3Snapshots: false,
hasLevel3Updates: false,

ticker: {
hasTimestamp: true,
hasLast: true,
hasOpen: false,
hasHigh: true,
hasLow: true,
hasVolume: true,
hasQuoteVolume: false,
hasChange: false,
hasChangePercent: false,
hasBid: true,
hasBidVolume: false,
hasAsk: true,
hasAskVolume: false,
},

trade: {
hasTradeId: false,
},

l2snapshot: {
hasTimestampMs: true,
hasSequenceId: false,
hasCount: false,
},

l2update: {
bmancini55 marked this conversation as resolved.
Show resolved Hide resolved
hasSnapshot: true,
hasTimestampMs: false,
hasSequenceId: false,
hasCount: false,
},
});
Loading