Comments (4)
and how to get the cash balance for exchange Kraken using ccxt.net?
from ccxt.net.
You can find in TradeApi, FetchOpenOrderAsync.
from ccxt.net.
any function such as fetchBalance(), create_market_buy_order()?
from ccxt.net.
found the solution for 2/3 of the questions. Here is the answer
[TestMethod]
public async Task Gemini_LoadMarketAsync_Should_Work()
{
var _public_api = new CCXT.NET.Gemini.Public.PublicApi();
var marketsRes = await _public_api.LoadMarketsAsync();
foreach (var item in marketsRes.result)
{
if (item.Key.Contains("BTC") && item.Key.Contains("USD"))
{
Console.WriteLine($"{item.Key}");
}
}
Console.WriteLine("---------");
foreach (var item in marketsRes.result)
{
if (item.Key.Contains("ETH") && item.Key.Contains("USD"))
{
Console.WriteLine($"{item.Key}");
}
}
}
[TestMethod]
public async Task Gemini_FetchTradesAsync_Should_Work()
{
var geminiApiKey = _configuration["Gemini:ApiKey"];
var exchangeSecret = _configuration["Gemini:Secret"];
var tradeApi = new CCXT.NET.Gemini.Trade.TradeApi(geminiApiKey, exchangeSecret);
var mytradesResponse = await tradeApi.FetchMyTradesAsync("BTC", "USD");
Assert.IsTrue(mytradesResponse.success == true);
}
However, I am still stucked when I create a market order. I did wrap the option in a string array, but still got the notice "the options parameter must be an array."
Can anyone help me out? Thanks
from ccxt.net.
Related Issues (20)
- Bitstamp Sample example is missed , OdinSdk.BaseLib DLL doesn't exist for .Net Core HOT 3
- Binance Public API FetchTicker/FetchTickers will return an error: "An item with the same key has already been added. Key: BCH/BNB" HOT 3
- FetchOHLCVs errors since update HOT 1
- Phemex Exchange HOT 2
- Binance sample error HOT 1
- What methods are supported HOT 14
- Is order placement supported? HOT 4
- Any plan on supporting FTX and Kucoin exchanges? HOT 3
- Bittrex API supported version HOT 1
- Bittrex 1.1 Api past end of life. HOT 2
- ccxt.net-1.3.7\sample\binance request timed-out. HOT 1
- BitMEX amend bulk seems to be missing HOT 2
- Whether to support futures trading?
- Are there plans to support the FetchPositions etc from CCXT? HOT 3
- The request timed-out. HOT 2
- Plans for supporting Phemex exchange
- OKExchange api v5 Support
- Where can I find corresponding CreateAddressAsync function in JavaScript. HOT 1
- Current situation with main CCXT? 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 ccxt.net.