New exchange - krakenfutures
fixes: #4727
fetchMarkets
2022-03-18T06:19:06.002Z
Node.js: v14.17.0
CCXT v1.76.38
krakenfutures.fetchMarkets ()
2022-03-18T06:19:08.231Z iteration 0 passed in 788 ms
id | symbol | base | quote | settle | baseId | quoteId | settleId | type | spot | margin | swap | future | option | index | active | contract | linear | inverse | contractSize | maintenanceMarginRate | expiry | expiryDatetime | strike | optionType | precision | limits
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
pi_xbtusd | BTC/USD:BTC | BTC | USD | BTC | xbt | usd | | swap | false | false | true | false | false | false | | true | false | true | 1 | | | | | | {"amount":1,"price":0.5} | {"leverage":{},"amount":{},"price":{},"cost":{}}
...
rr_ltcusd | rr_ltcusd | LTC | USD | | ltc | usd | | index | false | false | false | false | false | true | | false | | | | | | | | | {} | {"leverage":{},"amount":{},"price":{},"cost":{}}
rr_bchusd | rr_bchusd | BCH | USD | | bch | usd | | index | false | false | false | false | false | true | | false | | | | | | | | | {} | {"leverage":{},"amount":{},"price":{},"cost":{}}
27 objects
fetchOrderBook
krakenfutures.fetchOrderBook (XRP/USD:XRP)
2022-03-18T06:22:01.658Z iteration 0 passed in 783 ms
{
symbol: 'XRP/USD:XRP',
bids: [
[ 0.7913, 3000 ], [ 0.7912, 58117 ], [ 0.7911, 3120 ],
...
[ 0.17, 20 ], [ 0.16, 20 ], [ 0.1, 100 ]
],
asks: [
[ 0.7919, 3000 ], [ 0.792, 3120 ], [ 0.7922, 3000 ],
...
[ 9, 50 ], [ 10, 50 ], [ 10.104, 500 ]
],
timestamp: 1647584521681,
datetime: '2022-03-18T06:22:01.681Z',
nonce: undefined
}
fetchTickers
krakenfutures.fetchTickers (BTC/USD:BTC,ETH/USD:ETH)
2022-03-18T06:26:53.637Z iteration 0 passed in 786 ms
{
'BTC/USD:BTC': {
symbol: 'BTC/USD:BTC',
timestamp: 1647584809608,
datetime: '2022-03-18T06:26:49.608Z',
high: undefined,
low: undefined,
bid: 40793.5,
bidVolume: 14974,
ask: 40807,
askVolume: 4400,
vwap: undefined,
open: 41023.5,
close: 40806,
last: 40806,
previousClose: undefined,
change: -217.5,
percentage: -0.5301839189732714,
average: 40914.75,
baseVolume: undefined,
quoteVolume: 86741193,
info: {
tag: 'perpetual',
pair: 'XBT:USD',
symbol: 'pi_xbtusd',
markPrice: '40800.2',
bid: '40793.5',
bidSize: '14974',
ask: '40807',
askSize: '4400',
vol24h: '86741193',
openInterest: '69825324.00000000',
open24h: '41023.5',
indexPrice: '40819.26',
last: '40806',
lastTime: '2022-03-18T06:26:49.608Z',
lastSize: '2197',
suspended: false,
fundingRate: '-0.000000001202972971',
fundingRatePrediction: '-0.000000000967727249'
}
},
'ETH/USD:ETH': {
symbol: 'ETH/USD:ETH',
timestamp: 1647584310389,
datetime: '2022-03-18T06:18:30.389Z',
high: undefined,
low: undefined,
bid: 2806.05,
bidVolume: 5000,
ask: 2808.1,
askVolume: 8770,
vwap: undefined,
open: 2761.85,
close: 2806.55,
last: 2806.55,
previousClose: undefined,
change: 44.7,
percentage: 1.6184803664210583,
average: 2784.2,
baseVolume: undefined,
quoteVolume: 43116112,
info: {
tag: 'perpetual',
pair: 'ETH:USD',
symbol: 'pi_ethusd',
markPrice: '2807.08',
bid: '2806.05',
bidSize: '5000',
ask: '2808.1',
askSize: '8770',
vol24h: '43116112',
openInterest: '55627265.00000000',
open24h: '2761.85',
indexPrice: '2807.74',
last: '2806.55',
lastTime: '2022-03-18T06:18:30.389Z',
lastSize: '44',
suspended: false,
fundingRate: '-0.000000012144038779',
fundingRatePrediction: '-0.000000007835440437'
}
}
}
fetchOHLCV
krakenfutures.fetchOHLCV (ETH/USD:ETH)
2022-03-18T06:28:43.998Z iteration 0 passed in 785 ms
1647584880000 | 2806.55 | 2806.55 | 2806.55 | 2806.55 | 0
1 objects
krakenfutures.fetchOHLCV (ETH/USD:ETH, 1h, 1647554158000)
2022-03-18T06:30:44.327Z iteration 0 passed in 847 ms
1647554400000 | 2819.7 | 2823.1 | 2808.9 | 2820.35 | 284771
1647558000000 | 2820.35 | 2820.35 | 2809.45 | 2816.4 | 496964
1647561600000 | 2816.4 | 2816.4 | 2767.15 | 2775.45 | 2226176
1647565200000 | 2775.45 | 2789.65 | 2770 | 2788.1 | 918398
1647568800000 | 2788.1 | 2790 | 2778.15 | 2782.5 | 382308
1647572400000 | 2782.5 | 2788.05 | 2769.1 | 2779.15 | 2724493
1647576000000 | 2779.15 | 2784.35 | 2772.7 | 2780.4 | 586048
1647579600000 | 2780.4 | 2809.95 | 2780.4 | 2802.85 | 947982
1647583200000 | 2802.85 | 2811.15 | 2802.2 | 2802.3 | 297003
9 objects
krakenfutures.fetchOHLCV (ETH/USD:ETH, 1h, 1647554158000, 3)
2022-03-18T06:31:00.613Z iteration 0 passed in 843 ms
1647554400000 | 2819.7 | 2823.1 | 2808.9 | 2820.35 | 284771
1647558000000 | 2820.35 | 2820.35 | 2809.45 | 2816.4 | 496964
1647561600000 | 2816.4 | 2816.4 | 2767.15 | 2775.45 | 2226176
3 objects
krakenfutures.fetchOHLCV (ETH/USD:ETH, 1h, , 3)
2022-03-18T06:32:31.141Z iteration 0 passed in 829 ms
1647576000000 | 2779.15 | 2784.35 | 2772.7 | 2780.4 | 586048
1647579600000 | 2780.4 | 2809.95 | 2780.4 | 2802.85 | 947982
1647583200000 | 2802.85 | 2811.15 | 2800.5 | 2801.2 | 310788
3 objects
fetchMarkOHLCV
krakenfutures.fetchMarkOHLCV (ETH/USD:ETH, 1h, , 3)
2022-03-18T06:33:41.066Z iteration 0 passed in 1142 ms
1647576000000 | 2779.1 | 2784.125 | 2772.65 | 2781.2 | 0
1647579600000 | 2781.2 | 2809.15 | 2781.125 | 2803.375 | 0
1647583200000 | 2803.375 | 2810.875 | 2799.575 | 2799.7 | 0
3 objects
fetchTrades
krakenfutures.fetchTrades (XRP/USD:XRP)
2022-03-18T06:59:00.662Z iteration 0 passed in 944 ms
id | timestamp | datetime | symbol | order | type | side | takerOrMaker | price | amount | cost | fee
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
52573ba5-f7b0-4472-94b2-3325c430075f | 1647579337703 | 2022-03-18T04:55:37.703Z | XRP/USD:XRP | | | sell | | 0.7921 | 1891 | 2387.324832723141 |
...
f746931c-a507-4256-a846-2d271ee313ce | 1647585247538 | 2022-03-18T06:34:07.538Z | XRP/USD:XRP | | | sell | | 0.7909 | 792 | 1001.3908205841446 |
21bbf4da-d6fd-42cc-8b20-5308b72c795a | 1647586588650 | 2022-03-18T06:56:28.650Z | XRP/USD:XRP | | | buy | | 0.7914 | 1 | 1.2635835228708618 |
100 objects
krakenfutures.fetchTrades (XRP/USD:XRP, 1647553983538, , [object Object])
2022-03-18T07:16:44.336Z iteration 0 passed in 781 ms
id | timestamp | datetime | symbol | order | type | side | takerOrMaker | price | amount | cost | fee
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
122bca21-ea94-449f-94e1-b540a0c2e335 | 1647553983538 | 2022-03-17T21:53:03.538Z | XRP/USD:XRP | | | buy | | 0.8 | 20 | 25 |
142bb657-5404-435d-a525-7259dbba4bcd | 1647553983538 | 2022-03-17T21:53:03.538Z | XRP/USD:XRP | | | buy | | 0.8 | 2 | 2.5 |
...
e8c2c28e-1252-42df-9709-e5c8c5773624 | 1647554034440 | 2022-03-17T21:53:54.440Z | XRP/USD:XRP | | | buy | | 0.7993 | 2100 | 2627.29888652571 |
11 objects
krakenfutures.fetchBalance ()
2022-03-18T07:25:12.874Z iteration 0 passed in 791 ms
{
info: { ... },
BCH: { free: undefined, used: undefined, total: 0 },
XRP: { free: undefined, used: undefined, total: 20.00733 },
ETH: { free: undefined, used: undefined, total: 0 },
LTC: { free: undefined, used: undefined, total: 0 },
BTC: { free: undefined, used: undefined, total: 0 },
free: {
BCH: undefined,
XRP: undefined,
ETH: undefined,
LTC: undefined,
BTC: undefined
},
used: {
BCH: undefined,
XRP: undefined,
ETH: undefined,
LTC: undefined,
BTC: undefined
},
total: { BCH: 0, XRP: 20.00733, ETH: 0, LTC: 0, BTC: 0 }
}
fetchFundingRateHistory
krakenfutures.fetchFundingRateHistory (XRP/USD:XRP)
2022-03-18T07:27:41.134Z iteration 0 passed in 1708 ms
symbol | fundingRate | timestamp | datetime
------------------------------------------------------------------------------
XRP/USD:XRP | 0.000379586204018453 | 1535731200000 | 2018-08-31T16:00:00.000Z
Waiting for the debugger to disconnect...
...
XRP/USD:XRP | 0.00000655008905716 | 1647561600000 | 2022-03-18T00:00:00.000Z
XRP/USD:XRP | -0.000009452946838443 | 1647576000000 | 2022-03-18T04:00:00.000Z
7768 objects
krakenfutures.fetchFundingRateHistory (XRP/USD:XRP, 1647561600000)
2022-03-18T07:27:57.038Z iteration 0 passed in 932 ms
symbol | fundingRate | timestamp | datetime
------------------------------------------------------------------------------
XRP/USD:XRP | 0.00000655008905716 | 1647561600000 | 2022-03-18T00:00:00.000Z
XRP/USD:XRP | -0.000009452946838443 | 1647576000000 | 2022-03-18T04:00:00.000Z
2 objects
krakenfutures.fetchFundingRateHistory (XRP/USD:XRP, 1647561600000, 1)
2022-03-18T07:28:04.845Z iteration 0 passed in 1000 ms
symbol | fundingRate | timestamp | datetime
----------------------------------------------------------------------------
XRP/USD:XRP | 0.00000655008905716 | 1647561600000 | 2022-03-18T00:00:00.000Z
1 objects
rakenfutures.fetchLeverageTiers (XRP/USD:XRP,BTC/USD:BTC)
2022-03-18T07:29:55.098Z iteration 0 passed in 783 ms
{
'BTC/USD:BTC': [
{
tier: 1,
currency: 'USD',
notionalFloor: 0,
notionalCap: 500000,
maintenanceMarginRate: 0.01,
maxLeverage: 50,
info: {
contracts: '0',
initialMargin: '0.02',
maintenanceMargin: '0.01'
}
},
...
{
tier: 8,
currency: 'USD',
notionalFloor: 50000000,
notionalCap: undefined,
maintenanceMarginRate: 0.2,
maxLeverage: 2.5,
info: {
contracts: '50000000',
initialMargin: '0.4',
maintenanceMargin: '0.2'
}
}
],
'XRP/USD:XRP': [
{
tier: 1,
currency: 'USD',
notionalFloor: 0,
notionalCap: 1000000,
maintenanceMarginRate: 0.05,
maxLeverage: 10,
info: {
contracts: '0',
initialMargin: '0.1',
maintenanceMargin: '0.05'
}
},
{
tier: 2,
currency: 'USD',
notionalFloor: 1000000,
notionalCap: undefined,
maintenanceMarginRate: 0.1,
maxLeverage: 5,
info: {
contracts: '1000000',
initialMargin: '0.2',
maintenanceMargin: '0.1'
}
}
]
}
editOrder
krakenfutures.editOrder (92f851cd-03b4-43cb-a7f6-5436926610e4, XRP/USD:XRP, limit, buy, 1, 0.78) krakenfutures.editOrder (92f851cd-03b4-43cb-a7f6-5436926610e4, XRP/USD:XRP, limit, buy, 2)
2022-03-18T07:41:07.351Z iteration 0 passed in 788 ms 2022-03-18T07:41:17.636Z iteration 0 passed in 783 ms
{ {
info: { info: {
status: 'edited', status: 'edited',
orderId: '92f851cd-03b4-43cb-a7f6-5436926610e4', orderId: '92f851cd-03b4-43cb-a7f6-5436926610e4',
receivedTime: '2022-03-18T07:41:07.494Z', receivedTime: '2022-03-18T07:41:17.781Z',
orderEvents: [ orderEvents: [
{ {
old: { old: {
orderId: '92f851cd-03b4-43cb-a7f6-5436926610e4', orderId: '92f851cd-03b4-43cb-a7f6-5436926610e4',
cliOrdId: null, cliOrdId: null,
type: 'lmt', type: 'lmt',
symbol: 'pi_xrpusd', symbol: 'pi_xrpusd',
side: 'buy', side: 'buy',
quantity: '1', quantity: '1',
filled: '0', filled: '0',
limitPrice: '0.75', limitPrice: '0.78',
reduceOnly: false, reduceOnly: false,
timestamp: '2022-03-18T07:40:25.250Z', timestamp: '2022-03-18T07:40:25.250Z',
lastUpdateTimestamp: '2022-03-18T07:40:25.250Z' lastUpdateTimestamp: '2022-03-18T07:41:07.493Z'
}, },
new: { new: {
orderId: '92f851cd-03b4-43cb-a7f6-5436926610e4', orderId: '92f851cd-03b4-43cb-a7f6-5436926610e4',
cliOrdId: null, cliOrdId: null,
type: 'lmt', type: 'lmt',
symbol: 'pi_xrpusd', symbol: 'pi_xrpusd',
side: 'buy', side: 'buy',
quantity: '1', quantity: '2',
filled: '0', filled: '0',
limitPrice: '0.78', limitPrice: '0.78',
reduceOnly: false, reduceOnly: false,
timestamp: '2022-03-18T07:40:25.250Z', timestamp: '2022-03-18T07:40:25.250Z',
lastUpdateTimestamp: '2022-03-18T07:41:07.493Z' lastUpdateTimestamp: '2022-03-18T07:41:17.781Z'
}, },
reducedQuantity: null, reducedQuantity: null,
type: 'EDIT' type: 'EDIT'
} }
] ]
}, },
id: '92f851cd-03b4-43cb-a7f6-5436926610e4', id: '92f851cd-03b4-43cb-a7f6-5436926610e4',
clientOrderId: undefined, clientOrderId: undefined,
timestamp: 1647589225250, timestamp: 1647589225250,
datetime: '2022-03-18T07:40:25.250Z', datetime: '2022-03-18T07:40:25.250Z',
lastTradeTimestamp: undefined, lastTradeTimestamp: undefined,
symbol: 'XRP/USD:XRP', symbol: 'XRP/USD:XRP',
type: 'limit', type: 'limit',
timeInForce: 'gtc', timeInForce: 'gtc',
postOnly: false, postOnly: false,
side: 'buy', side: 'buy',
price: 0.78, price: 0.78,
stopPrice: undefined, stopPrice: undefined,
amount: 1, amount: 2,
cost: 0, cost: 0,
average: undefined, average: undefined,
filled: 0, filled: 0,
remaining: 1, remaining: 2,
status: 'open', status: 'open',
fee: undefined, fee: undefined,
fees: [], fees: [],
trades: [] trades: []
} }
# createOrder
krakenfutures.createOrder (XRP/USD:XRP, market, buy, 1, , [object Object]) krakenfutures.createOrder (XRP/USD:XRP, limit, buy, 1, 0.75)
2022-03-18T07:52:08.318Z iteration 0 passed in 788 ms 2022-03-18T07:52:13.774Z iteration 0 passed in 791 ms
{ {
info: { info: {
order_id: '7623e84b-e7b8-404a-a149-a433safdla9f', order_id: 'd833acae-988a-eo3l-ac75-78f35ad8cefa',
status: 'placed', status: 'placed',
receivedTime: '2022-03-18T07:52:08.462Z', receivedTime: '2022-03-18T07:52:13.913Z',
orderEvents: [ orderEvents: [
{ {
orderTrigger: { order: {
uid: '...', orderId: 'd833acae-988a-446d-ac75-78fb3ad8cefa',
clientId: null, cliOrdId: null,
type: 'ioc', type: 'lmt',
symbol: 'pi_xrpusd', symbol: 'pi_xrpusd',
side: 'buy', side: 'buy',
quantity: '1', quantity: '1',
limitPrice: null, filled: '0',
triggerPrice: '0.78', limitPrice: '0.75',
triggerSide: 'trigger_above', reduceOnly: false,
triggerSignal: 'last_price', timestamp: '2022-03-18T07:52:13.913Z',
reduceOnly: false, lastUpdateTimestamp: '2022-03-18T07:52:13.913Z'
timestamp: '2022-03-18T07:52:08.462Z', },
lastUpdateTimestamp: '2022-03-18T07:52:08.462Z', reducedQuantity: null,
startTime: null type: 'PLACE'
}, }
type: 'PLACE' ]
} },
] id: 'd833acae-988a-446d-ac75-78fb5ad8cefa',
}, clientOrderId: undefined,
id: 'dslfjsalk-e7b8-404a-a149-a433f2e93a9f', timestamp: 1647589933913,
clientOrderId: undefined, datetime: '2022-03-18T07:52:13.913Z',
timestamp: 1647589928462, lastTradeTimestamp: undefined,
datetime: '2022-03-18T07:52:08.462Z', symbol: 'XRP/USD:XRP',
lastTradeTimestamp: undefined, type: 'limit',
symbol: 'XRP/USD:XRP', timeInForce: 'gtc',
type: 'market', postOnly: false,
timeInForce: 'IOC', side: 'buy',
postOnly: false, price: 0.75,
side: 'buy', stopPrice: undefined,
price: undefined, amount: 1,
stopPrice: 0.78, cost: 0,
amount: 1, average: undefined,
cost: undefined, filled: 0,
average: undefined, remaining: 1,
filled: 0, status: 'open',
remaining: 1, fee: undefined,
status: 'open', fees: [],
fee: undefined, trades: []
fees: [], }
trades: []
}
cancelAllOrders
krakenfutures.cancelAllOrders ()
2022-03-18T07:52:22.421Z iteration 0 passed in 793 ms
{
result: 'success',
cancelStatus: {
receivedTime: '2022-03-18T07:52:22.558Z',
cancelOnly: 'all',
status: 'cancelled',
cancelledOrders: [
{ order_id: 'd833acae-988a-446d-ac75-78fb3o2diefa' },
{ order_id: '7623e84b-e7b8-404a-a149-dkasl3fjda9f' }
],
orderEvents: [
{
uid: '...',
order: {
orderId: 'd833acae-988a-446d-ac75-efkfk30fo',
cliOrdId: null,
type: 'lmt',
symbol: 'pi_xrpusd',
side: 'buy',
quantity: '1',
filled: '0',
limitPrice: '0.75',
reduceOnly: false,
timestamp: '2022-03-18T07:52:13.913Z',
lastUpdateTimestamp: '2022-03-18T07:52:13.913Z'
},
type: 'CANCEL'
}
]
},
serverTime: '2022-03-18T07:52:22.559Z'
}
fetchOpenOrders
krakenfutures.fetchOpenOrders ()
2022-03-18T07:57:28.970Z iteration 0 passed in 785 ms
id | clientOrderId | timestamp | datetime | lastTradeTimestamp | symbol | type | timeInForce | postOnly | side | price | stopPrice | amount | cost | average | filled | remaining | status | fee | fees | trades
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
e3d373do-0175-40b4-882a-dlksjlkje93o | | 1647590238485 | 2022-03-18T07:57:18.485Z | | XRP/USD:XRP | stop | gtc | false | buy | | | 1 | | | 0 | 1 | open | | [] | []
1 objects
cancelOrder
krakenfutures.cancelOrder (e3d37366-0175-40b4-882a-95fab17004bb)
2022-03-18T07:59:22.522Z iteration 0 passed in 1082 ms
{
info: {
status: 'cancelled',
order_id: 'e3d373do-0175-40b4-882a-dlksjlkje93o',
receivedTime: '2022-03-18T07:59:22.683Z',
orderEvents: [
{
uid: '...',
orderTrigger: {
uid: '...',
clientId: null,
type: 'ioc',
symbol: 'pi_xrpusd',
side: 'buy',
quantity: '1',
limitPrice: null,
triggerPrice: '0.78',
triggerSide: 'trigger_above',
triggerSignal: 'last_price',
reduceOnly: false,
timestamp: '2022-03-18T07:57:18.485Z',
lastUpdateTimestamp: '2022-03-18T07:57:18.485Z',
startTime: null
},
type: 'CANCEL'
}
]
},
id: 'e3d373do-0175-40b4-882a-dlksjlkje93o',
clientOrderId: undefined,
timestamp: 1647590238485,
datetime: '2022-03-18T07:57:18.485Z',
lastTradeTimestamp: undefined,
symbol: 'XRP/USD:XRP',
type: 'market',
timeInForce: 'IOC',
postOnly: false,
side: 'buy',
price: undefined,
stopPrice: 0.78,
amount: 1,
cost: undefined,
average: undefined,
filled: 0,
remaining: 1,
status: 'canceled',
fee: undefined,
fees: [],
trades: []
}
fetchPositions
krakenfutures.fetchPositions ()
2022-03-18T08:00:06.108Z iteration 0 passed in 786 ms
symbol | timestamp | datetime | initialMargin | initialMarginPercentage | maintenanceMargin | maintenanceMarginPercentage | entryPrice | notional | leverage | unrealizedPnl | contracts | contractSize | marginRatio | liquidationPrice | markPrice | collateral | marginType | side | percentage
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PI_XRPUSD | 1647590406274 | 2022-03-18T08:00:06.274Z | | | | | 0.7886 | | | | | | | | | 1 | cross | long |
1 objects
krakenfutures.fetchMyTrades ()
2022-03-18T08:00:47.867Z iteration 0 passed in 788 ms
id | timestamp | datetime | symbol | order | type | side | takerOrMaker | price | amount | cost | fee
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
e3d373do-0175-40b4-882a-dlksjlkje93o | 1646078861580 | 2022-02-28T20:07:41.580Z | XRP/USD:XRP | sdlskdjk-db3c-45e5-afa6-sdlgj39fllsl | | buy | taker | 0.7636 | 5 | 6.5479308538501835 |
...
dlskjd38-be15-47f2-9787-sdlfjalj39dl | 1647589726752 | 2022-03-18T07:48:46.752Z | XRP/USD:XRP | sdslkj39s-846e-4f81-8024-ldjlksji3909 | | buy | taker | 0.7905 | 1 | 1.2650221378874131 |
dslkdj38-6968-4fad-bf16-3idisljgidkk | 1647590397020 | 2022-03-18T07:59:57.020Z | XRP/USD:XRP | sdlkj3930-59c4-45b5-bfee-dflkjsd390000 | | buy | taker | 0.7886 | 1 | 1.26806999746386 |
98 objects
@samgermain check this comment: https://github.com/ccxt/ccxt/pull/6870#issuecomment-1034875961
@kroitor @frosty00
You can review this, but don't merge it until I do some more extensive testing on it.
The only "necessary" method it would be missing is fetchClosedOrders which looks like it's possible, but I couldn't figure out the authentication errors I was getting
@kroitor One reason why having a separate branch for an exchange would be that the build would have to succeed for each new merge into the branch. Right now the build is failing because of a PHP syntax error, and it's hidden somewhere in the krakenfutures file. krakenfutures.php isn't generated, so I can't view it, and I'm not getting any eslint errors, so it's a silent error hidden somewhere in the js file
Also, it would defeat the need to run npm export-exchanges everytime I work on the branch
@kroitor This is all done and tested
fetchBalance returns the balance for the wallet account on futures, but not the trading account, should I switch that?
I can't figure out why this is happening, I'll even delete everything but describe and still get it
> [email protected] check-php-syntax
> php -f php/test/syntax.php
Checking PHP Syntax...
ATTENTION!
If it fails, make sure to clean up the code as outlined in CONTRIBUTING.md
Read these rules very carefully and follow them LITERALLY:
- https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
- https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#derived-exchange-classes
PHP Fatal error: Uncaught Error: Class "\ccxt\krakenfutures" not found in /Users/sam/Documents/dev/CCXT/ccxt/php/test/syntax.php:22
Stack trace:
#0 {main}
thrown in /Users/sam/Documents/dev/CCXT/ccxt/php/test/syntax.php on line 22
Fatal error: Uncaught Error: Class "\ccxt\krakenfutures" not found in /Users/sam/Documents/dev/CCXT/ccxt/php/test/syntax.php:22
Stack trace:
#0 {main}
thrown in /Users/sam/Documents/dev/CCXT/ccxt/php/test/syntax.php on line 22
All the methods work fine, I'm just getting this php syntax error
@samgermain the php error you get, is probably because the 'id' property in describe doesnt match with the class name. correct that (change to krakenfu) and it should fix.
@samgermain the php error you get, is probably because the 'id' property in describe doesnt match with the class name. correct that (change to
krakenfu) and it should fix.
Thanks, I wouldn't have caught that
🎉
This is not done yet. #15133