简体   繁体   English

为什么我只有心跳?

[英]Why I get only heartbeats?

I have the code at the bottom to subscribe. 我在底部有要订阅的代码。 Something I must do wrong because I get the only heartbeat messages. 我必须做错某些事,因为我会收到唯一的心跳消息。 How can I get the messages if there was a match? 如果存在匹配项,如何获取消息? I tried it with the new endpoint with the same result. 我用新的端点尝试了同样的结果。 Should this api work with EUR as well? 该API是否也可以与EUR一起使用? because it works with USD like ETH-USD but don't see it with eur. 因为它可以像ETH-USD一样与USD一起使用,但看不到eur。 Thank you 谢谢

const socket = new gdax_1.WebsocketClient(
    ['ETH-EUR'],
    'wss://ws-feed-public.sandbox.gdax.com',
    undefined,
    { channels: ['matches'] },
)

I found the reason. 我找到了原因。 It was because I connected to the sandbox, and the match data from the sandbox is different than live. 这是因为我已连接到沙盒,并且沙盒中的比赛数据与实时数据不同。 It seems there is no mock service for ETH-EUR. 似乎没有ETH-EUR的模拟服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM