Git Product home page Git Product logo

broker-api-csharp-v2's People

Contributors

btctraderadmin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

broker-api-csharp-v2's Issues

Visual Studio 2015 ile build problemi

Merhabalar,
Bilgisayarimda VS2015 kurulu ve baska bir versiyonunu kuramiyorum.
V2 icin hazirlanmis projeyi indirip acmak istedigimde acamiyor, muhtemelen daha yeni bir surum gerekli.
Ben de VS2015 ile yeni proje acip, dosyalari bu projenin icine gomdum.
Nuget ten IdentityModel ve NewtonSoft yukledim.
.net framework 4.8
Asagidaki fonskiyonda (Authentication.cs icinde) DiscoveryClient classini ve RequestResourceOwnerPasswordAsync fonksiyonu bulamiyor.

Authentication.cs

public async Task<TokenResponse> GetTokenResponse(string refreshToken = null)
{            
    // discover endpoints from metadata
    var disco = await **DiscoveryClient**.GetAsync(_authenticationUrl);
    if (disco.IsError)
    {
        return null;
    }

    // request token
    var tokenClient = new TokenClient(disco.TokenEndpoint, "api");
    TokenResponse tokenResponse;
    if (string.IsNullOrEmpty(refreshToken))
    {
        tokenResponse = await tokenClient.**RequestResourceOwnerPasswordAsync**(_username, _password);
    }
    else
    {
        tokenResponse = await tokenClient.RequestRefreshTokenAsync(refreshToken);
    }

    return tokenResponse;
}

Yardimlarinizi bekliyorum.
Tesekkurler.

UserTransactions Çalışmıyor

Merhaba,

İçerisinde sadece key bilgilerimi doldurup çalıştırdığımda UserTransactions bilgileri hata dönüyor. Unauthorized - 401 hatası veriyor. API key oluştururken bu işlem için yetki verdim.

PairNormalized: BTC_TRY
Last: 31186.0
High: 31198.0
Low: 30601.0
Volume: 192.52608795
Bid: 31127.0
Ask: 31186.0
Open: 31147.0
Average: 30955.61
Daily: 39.0000000000000000
DailyPercent: 0.125213
DenominatorSymbol: TRY
NumeratorSymbol: BTC
Timestamp: 1555917209223
Best bid price:31143.00
Best bid amount:0.09692000
Token is unauthorized to do this action: [GET] /api/v1/users/transactions/trade?type=buy&type=sell&symbol=try&symbol=btc&startDate=1528269213055&endDate=1555917213055. Please check your bearer token in request header.
Token is unauthorized to do this action: [GET] /api/v1/users/transactions/fiat?type=deposit&type=withdrawal&symbol=try&startDate=1553325213416&endDate=1555917213416. Please check your bearer token in request header.
Token is unauthorized to do this action: [GET] /api/v1/users/transactions/crypto?type=deposit&type=withdrawal&symbol=btc&symbol=eth&symbol=xrp&startDate=1553325213681&endDate=1555917213681. Please check your bearer token in request header.

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.