Code Monkey home page Code Monkey logo

btceapi's People

Contributors

dmt021 avatar evilbeaver avatar kasthack avatar maksimkiselev avatar pepyakin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

btceapi's Issues

BtceApiV3.GetTrades limit not work

@@ -270,7 +270,7 @@ private static string QueryIgnoreInvalid(string method, BtcePair[] pairlist, Dic
{
var newargs = new Dictionary<string,string>() { {"ignore_invalid", "1"} };
if (args != null)

  •            newargs.Concat(args);
    
  •            newargs = newargs.Union(args).ToDictionary(k => k.Key, v => v.Value);
         return Query(method, pairlist, newargs);
     } 
    

Question on trade completion

Is there a recommended way to check to see if a trade is complete? I was thinking you would place an order, keep the resulting OrderID, and then check the TradeHistory for the OrderID to appear.

List return issue retun empty List

THis code returns empty list:
List = o.OfType<KeyValuePair<string, JToken>>().ToDictionary(item => int.Parse(item.Key), item => Order.ReadFromJObject(item.Value as JObject))

I recomend replace to:
List = ((ICollection<KeyValuePair<string, JToken>>)o).ToDictionary(item => int.Parse(item.Key), item => Order.ReadFromJObject(item.Value as JObject))

GetTradeHistory() And GetTransHistory() return 0 records.

To the guys that have developed this: Thank you. It looks really good but I am having a problem with the GetTradeHistory() and GetTransHistory().

When I call these methods: var transHistory = btceApi.GetTransHistory();

I can see that all the records have been retrieved from BTC-e : example below.

result = {
"success": 1,
"return": {
"12345698746632": {
"type": 4,
"amount": 10.79682553,
"currency": "BTC",
"desc": "Bought 1093.93204463 PPC from your order :order:111888285: by price
.......

However after the return statement :

 return TransHistory.ReadFromJObject(result["return"] as JObject);

 There are no records returned:   List = Count = 0

I cannot for the life of me work it out. Have spend several hours on this but I'm stumped.

Any advice would be greatly appreciated. Thank you muchly. Pete.

PS. in Funds.cs there are some typos for the currency codes:

            Btc = o.Value<decimal>("btc"),
            Ltc = o.Value<decimal>("ltc"),
            Nmc = o.Value<decimal>("ntc"),   <---Should be nmc
            Nvc = o.Value<decimal>("nvc"),
            Trc = o.Value<decimal>("trc"),
            Ppc = o.Value<decimal>("ppc"),
            Ftc = o.Value<decimal>("Ftc"),   <---Should be ftc
            Usd = o.Value<decimal>("Usd"),   <---Should be usd
            Rur = o.Value<decimal>("rur"),
            Eur = o.Value<decimal>("eur")

Not compatible with Metro API

The current implementation is not compatible with the requirements for Windows 8 apps. There are some references that don't exist in the Metro API.

Case in point would be Query(string url), which uses HttpWebRequest. There is no GetResponse() anymore, but instead only an asynchronous BeginGetResponse() that requires a callback when the operation completes.

Supporting an asynchronous model would be helpful.

GetTransHistory() Broken

The data returned from the server is failing to properly parse at this function:
public static TransHistory ReadFromJObject(JObject o)

Is this project still alive?

Hi -- is this project still alive.

It's broken in that there are a number of bugs, and the usage of JSON.NET is wrong (it should be using JsonProperty attributes, rather than the ReadFromJObject calls that are on the DTOs).

I'm happy to fix it if you'll allow pull requests, otherwise I'll just start again?

Thanks,
Matt

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.