简体   繁体   English

Whaleclub API打开涡轮位置

[英]Whaleclub api opening a turbo position

Im trying to test opening a turbo position in the whaleclub api 我正在尝试在Whaleclub API中测试打开涡轮增压位置

http://docs.whaleclub.co/ http://docs.whaleclub.co/

and so far I have 到目前为止,我有

wc.newTurboPosition({
direction: 'short',
market: 'BTC-USD',
type: '1min',
size: (1 * 1e8)/100 
}).then(console.log);

using this client library 使用此客户端库

https://github.com/askmike/whaleclub https://github.com/askmike/whaleclub

I can open a regular position fine using 我可以使用以下方法打开常规头寸

wc.newPosition({
direction: 'long',
market: 'BTC-USD',
leverage: 10,
size: 1 * 1e8, // 1 btc
}).then(console.log);

nothing shows up in my log either 我的日志中也没有显示任何内容

so not sure why its not working for the turbo position and I tried changing the size too since the turbo market has .1 btc limit but that didnt work either. 所以不知道为什么它不适合涡轮增压位置,我也尝试更改大小,因为涡轮增压市场有.1 btc限制,但这也没有用。 I am very new at this and thank you in advance 我很新,在此先谢谢你

I got it to work using 我使用它来工作

wc.newTurboPosition({
direction: 'short',
market: 'BTC-USD',
type: '5min',
size: 1 * 1e6
}).then(console.log)

feel kind of dumb now lol 现在感觉有点傻

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

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