Coder Social home page Coder Social logo

Comments (7)

burakoner avatar burakoner commented on June 7, 2024 1

I think you are talking about examples on readme file. I've fixed it in v5.0.5 both 638c68a and https://www.nuget.org/packages/OKEx.Net/5.0.5

from okex.net.

burakoner avatar burakoner commented on June 7, 2024

Can you explain please? which endpoint? what are the meanings of those numbers?

from okex.net.

ali7sa avatar ali7sa commented on June 7, 2024

tnx a lot. It's ok now. but could you plz tell me how to use this method?
you can see my problem in this link. this is an image --> https://ibb.co/H2H2R8b
which attribute should I use for reporting? for example something like as xlsx or CSV or something like that.
there are lots of methods. it's complicated. is there any manual or paper sheet or guide?
thanks in advanced

from okex.net.

burakoner avatar burakoner commented on June 7, 2024

It returns WebCallResult<IEnumerable> data type. So you have an IEnumerable object in "account_04.Data" in your picture. You can use it as a list or array. Try to loop with for or foreach as below

var html = "<table>";
html +="<tr>";
html +="<td>Currency</td>";
html +="<td>Time </td>";
html +="<td>Instrument</td>";
html +="<td>InstrumentType</td>";
html +="<td>MarginMode</td>";
html +="<td>BillId </td>";
html +="<td>OrderId</td>";
html +="<td>Balance </td>";
html +="<td>BalanceChange </td>";
html +="<td>Quantity</td>";
html +="<td>Fee</td>";
html +="<td>FromAccount</td>";
html +="<td>ToAccount </td>";
html +="<td>Notes </td>";
html +="</tr>";
foreach(var bill in account_04.Data){
// Your action
// bill is a OkexAccountBill object. (https://github.com/burakoner/OKEx.Net/blob/a1cd2dbc1b51b9c9aca3ac47052d608e9260161a/Okex.Net/RestObjects/Account/OkexAccountBill.cs)

html +="<tr>";
html +="<td>"+bill.Currency+"</td>";
html +="<td>"+bill.Time +"</td>";
...
html +="</tr>";
}
html +="</table>";

I hope this sample will help you.

Notes: I didnt try it I've just written it here. Please fix if there is syntax error.

from okex.net.

ali7sa avatar ali7sa commented on June 7, 2024

yes in the readme file. tnx a lot. but really I couldn't find as you saw that image. there is not exist. I don't know how to use . for and foreach didn't work cuz account_04.Data returns zero, and could contain the loop. could you plz sample code that how can I use this method. whatever you know is simple that I understand

from okex.net.

burakoner avatar burakoner commented on June 7, 2024

If you dont know where to go I cant help you. You need to check is there is rows in data as below.

if(account_04.Data.Count()>0)

from okex.net.

ali7sa avatar ali7sa commented on June 7, 2024

is there any software that works the same as this code?
finally, I couldn't understand code and couldn't use it!

from okex.net.

Related Issues (20)

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.