Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when buying on spot #157

Open
Ctorab opened this issue Aug 2, 2023 · 0 comments
Open

Error when buying on spot #157

Ctorab opened this issue Aug 2, 2023 · 0 comments

Comments

@Ctorab
Copy link

Ctorab commented Aug 2, 2023

`
var bybitClient = new BybitRestClient(options =>
{
options.ApiCredentials = new ApiCredentials("XXXX", "XXXX");
/options.InverseFuturesOptions.ApiCredentials = new ApiCredentials("FUTURES-API-KEY", "FUTURES-API-SECRET");/
options.RequestTimeout = TimeSpan.FromSeconds(60);
options.AutoTimestamp = true;
});

        var accountData = await bybitClient.SpotApiV3.Account.GetBalancesAsync();
        var orderData = await bybitClient.SpotApiV3.Trading.PlaceOrderAsync("PLANETUSDT", OrderSide.Buy, OrderType.Market, 1m, timeInForce: TimeInForce.GoodTillCanceled);

`

Hello, this is the code I'm using, when I get account balance It returns the account balance without any error, but when I try to buy on spot I can't it says {10005: Invalid API-key, IP, or permissions for action. }. API-Key is 100% valid, any IP can access the api and all premissions are active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant