Git Product home page Git Product logo

bingx.net's People

Contributors

jkorf avatar rleydev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bingx.net's Issues

Error gettings exchange contracts

Hi,
I use JK.BingX.Net:
<PackageReference Include="JK.BingX.Net" Version="1.3.0" />

I try to get BingX futures available contracts, but get an error:
изображение
In previous versions of library it worked. Any ideas?

Thanks, Tim

Open Price in Future Position not set

Hey Jan,
i am reading the done future positions from BingX.

To Reproduce
var historicPositions = await _restClient.PerpetualFuturesApi.Trading.GetClosedOrdersAsync();

Expected behavior
Here is a screenshot from a position i read in Visual Studio. You can see that AveragePrice/Price is near the close price, but i dont see the open price anywhere (must be around 5.79993)
image

Thats a screenshot from BingX with the real position.
image

Placing market order for PerpetualFuturesApi

When I use method restClient.PerpetualFuturesApi.Trading.PlaceOrderAsync and place market order with params (see picture)
quantity = 5, I want to place order with 5 USDT but api try to place order with quantity in 5 BTC.
Probably it is bingX api problem.
11
22

Can't convert bool value in PerpetualFuturesApi -> GetContractsAsync method

Describe the bug
sometime boolean value response from api as json string, isn't true or false ! BingX return just empty string "" so the following code doesn't convert from json string to Object related Model

To Reproduce
var contracts = await _bingXClient.PerpetualFuturesApi.ExchangeData.GetContractsAsync();

Debug logging
{[DeserializeError] Unknown exception: Can't convert bool value 25 {"code":0,"msg":"","data":[{"contractId":"100","symbol":"BTC-USDT","size":"0.0001","quantityPrecision":4,"pricePrecision":1,"feeRate":0.0005,"makerFeeRate":0.0002,"takerFeeRate":0.0005,"tradeMinLimit":0,"tradeMinQuantity":0.0001,"tradeMinUSDT":2,"maxLongLeverage":125,"maxShortLeverage":125,"currency":"USDT","asset":"BTC","status":1,"apiStateOpen":"true","apiStateClose":"true","ensureTrigger":true,"triggerFeeRate":"0.00020000"},{"contractId":"101","symbol":"ETH-USDT","size":"0.01","quantityPrecision":2,"pricePrecision":2,"feeRate":0.0005,"makerFeeRate":0.0002,"takerFeeRate":0.0005,"tradeMinLimit":0,"tradeMinQuantity":0.01,"tradeMinUSDT":2,"maxLongLeverage":125,"maxShortLeverage":125,"currency":"USDT","asset":"ETH","status":1,"apiStateOpen":"true","apiStateClose":"true","ensureTrigger":true,"triggerFeeRate":"0.00010000"},{"contractId":"103","symbol":"LINK-USDT","size":"0.1","quantityPrecision":1,"pricePrecision":3,"feeRate":0.0005,"makerFeeRate":0.0002,"takerFeeRate":0.0005,"tradeMinLimit":0,"tradeMinQuantity":0.1,"tradeMinUSDT":2,"maxLongLeverage":5,"maxShortLeverage":5,"currency":"USDT","asset":"LINK","status":1,"apiStateOpen":"true","apiStateClose":"true","ensureTrigger":true,"triggerFeeRate":"0.00025000"},{"contractId":"100002","symbol":"BCH-USDT","size":"0.01","quantityPrecision":2,"pricePrecision":2,"feeRate":0.0005,"makerFeeRate":0.0002,"takerFeeRate":0.0005,"tradeMinLimit":0,"tradeMinQuantity":0.01,"tradeMinUSDT":2,"maxLongLeverage":5,"maxShortLeverage":5,"currency":"USDT","asset":"BCH","status":1,"apiStateOpen":"true","apiStateClose":"true","ensureTrigger":true,"triggerFeeRate":"0.00075000"},

No data updates in user order updates stream

When I place orders via API there are no any updates in the user's stream. I use jk.bingx.net 1.3.1.
For subscription (onOrderUpdate) I use method socketClient.PerpetualFuturesApi.SubscribeToUserDataUpdatesAsync
I place orders (market or limit) by using method restClient.PerpetualFuturesApi.Trading.PlaceOrderAsync

In the same time when I place/cancel limit/market orders using web-browser then I receive updates in the user's stream.

Probably there are some errors with data parsing (see picture).
These errors occurred when I used the socketClient.PerpetualFuturesApi.SubscribeToUserDataUpdatesAsync method with any subscriptions.
123

Bingx Forex symbols not available in BingX.net API

using BingX.Net.Clients;

BingXSocketClient _bingx = new BingXSocketClient();

var response = await _bingx.PerpetualFuturesApi.SubscribeToTickerUpdatesAsync("NZD-USD", update =>
{
    Console.WriteLine(update.Data.LastPrice);
});


try
{
    // Await a delay that will be canceled when the token is canceled
    await Task.Delay(Timeout.Infinite);
}
catch (TaskCanceledException)
{
    Console.WriteLine("Task Canceled successfully.");
}

Error:
{[ServerError] 80015: dataType not support }

FeeAsset is Empty

Hey Jan,

I used the bingx restclient to load order infos, everything is filled, but not the FeeAsset

To Reproduce
Endpoint: restClient.SpotApi.Trading.GetOrdersAsync(tradeSymbol)

Expected behavior
All properties filled, but FeeAsset is not.

image

SetMarginModeAsync for PerpetualFuturesApi

Method PerpetualFuturesApi.Account.SetMarginModeAsync() does not change margin type.

I have Cross margin for the contract MANA-USDT and try to change it by using method SetMarginModeAsync("MANA-USDT", MarginMode.Isolated).

Then I use method PerpetualFuturesApi.Account.GetMarginModeAsync("MANA-USDT") and I see that margin still have value Cross.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.