Comments (2)
The testnet endpoints are not maintained in code (yet?) but you can set the BaseAddress in the options manually. Here is what I use but please confirm in the Bybit API docs:
For the REST client:
BaseAddress = testnet ? "https://api-testnet.bybit.com" : "https://api.bybit.com"
For the socket client:
BaseAddress = testnet ? "wss://stream-testnet.bybit.com/realtime_public" : "wss://stream.bybit.com/realtime_public" BaseAddressAuthenticated = testnet ? "wss://stream-testnet.bybit.com/realtime_private" : "wss://stream.bybit.com/realtime_private"
Be aware that you need a dedicated API key/secret for testnet that you would need to set in the options as well.
from bybit.net.
Great Thanks @ToSa27 for the help!
from bybit.net.
Related Issues (20)
- Missing isMasterTrader parameter in /v5/account/info endpoint (GetMarginAccountInfoAsync) HOT 1
- SetAccountCollateralCoin HOT 1
- Missing Brocker API in V5 HOT 1
- Bug in Websocket Stream Private Order Data... HOT 1
- septa and bleeding bybit packages HOT 2
- api returning error when no data is present HOT 2
- Multiple constructors accepting all given argument types have been found in type 'Bybit.Net.Clients.BybitRestClient' HOT 2
- V5Api.Trading.GetOrdersAsync does NOT return ExecutedFee HOT 1
- Instruments needs an update HOT 1
- PositionMode type in BybitOrderUpdate after 3.5.0 update HOT 1
- 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
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.