Comments (6)
I think the problem is Parameter used is recvWindow
"&order_type=Market&position_idx=0&qty=0.1&recvWindow=10000&reduce_only=False&side=Sell"
it should be recv_window (underscore missing ?)
from bybit.net.
I've looked into this, and it turns out that for the Spot API it's recvWindow while for the futures API's it's recv_window. So that's fun. Either way, I've fixed it in the latest version.
I've also added the round trip time of a request as a parameter for the timestamp correction, so hopefully there are less timestamp issues from that version on. The best solution for timestamping issue is still to sync your server time more often with a third party tool.
from bybit.net.
Just need to increase rece_window timeout , I am setting it in constructor
_bybitClient = new BybitClient(new BybitClientOptions()
{
ApiCredentials = new ApiCredentials(AppConfigurationService.ApiKey, AppConfigurationService.ApiSecret),
LogLevel = LogLevel.Trace,
RequestTimeout = TimeSpan.FromSeconds(60),
ReceiveWindow = new TimeSpan(0,0,30),
});
but it's still 5000 when doing _bybitClient.UsdPerpetualApi.Trading.PlaceOrderAsync(....)
Not sure why 30 sec is not comes in to play ?
from bybit.net.
Hm that sounds like a bug. When setting it like that in the client options it should be send as 30 seconds instead of 5 seconds. Either way, the best way to make sure this error doesn't happen is to make sure your server time is synced more often, see:
https://jkorf.github.io/Binance.Net/Timestamping.html
This is for Binance, but the same goes for Bybit
from bybit.net.
I think the problem is Parameter used is recvWindow "&order_type=Market&position_idx=0&qty=0.1&recvWindow=10000&reduce_only=False&side=Sell" it should be recv_window (underscore missing ?)
I think you are right, Please update the package @JanKorf
from bybit.net.
It's still present. Error ret_code 130021. On perpetual usdt.
from bybit.net.
Related Issues (20)
- V5Api.Trading.GetPositionsAsync cannot parse json string correctly after 3.5.0 HOT 1
- V5LinearApi.SubscribeToOrderbookUpdatesAsync() - Snapshot data not return HOT 7
- V5Api.Account.GetBalancesAsync(AccountType.Unified) throws error... HOT 5
- Error in AccountUpdate_EventAsync at FundingFee event... HOT 2
- Spelling error in InternalDepositStatus enum identifier HOT 1
- JsonSerializationException in GetLinearInverseSymbolsAsync() HOT 1
- Error sign! after March 8th when placing orders or setting leverage HOT 4
- WebSocket V5PrivateApi SubscribeToOrderUpdatesAsync missing enum HOT 1
- Return value of GetUserTradesAsync HOT 2
- Reduce for loop complexity from O(N^2) to O(N) HOT 1
- Error getting orderbook for options HOT 2
- Error getting positions HOT 1
- Have you support USDC futures?
- BybitSocketClient.V5OptionsApi.SubscribeToOrderbookUpdatesAsync doesn't not work HOT 1
- Error Logged as Information HOT 1
- How to get OHLC data HOT 2
- Concurrent request example HOT 1
- BybitSpotPriceFilter properties missing HOT 2
- Unable to use BybitSymbolOrderBook with Demo env
- GetCollateralInfoAsync startted to give error... HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bybit.net.