Giter VIP home page Giter VIP logo

luno-go's People

Contributors

adamhicks avatar arcturial avatar bubblyworld avatar claudiagrindlay avatar donohutcheon avatar echarrod avatar jrkilloran avatar kubilayluno avatar natercioluno avatar neilgarb avatar neilluno avatar nmoniz avatar pkachelhoffer avatar remiroz avatar renovate[bot] avatar shashaneranasinghe avatar yakkomajuri 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  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  avatar

luno-go's Issues

Beneficiary List

Hi,

I see the Luno API documentation changelog shows:

"2015-07-29: Added Perm_R_Beneficiaries and Perm_W_Beneficiaries permissions. You will have to generate a new API key if you require these permissions."

These permissions seem to be created for viewing, creating, and deleting beneficiaries

"Perm_R_Beneficiaries = 32768 (View beneficiaries)
Perm_W_Beneficiaries = 65536 (Create and delete beneficiaries)"

I don't see any APIs to actually do this though? Do they exist? And if so, does this library support them?

Thanks,

Could not import github.com/luno/luno-go

I tried downloading the package using go get github.com/luno/luno-go

However, VS Code can't seem to detect / import it.

could not import github.com/luno/luno-go (cannot find package "github.com/luno/luno-go" in any of
C:\Program Files\Go\src\github.com\luno\luno-go (from $GOROOT)
C\src\github.com\luno\luno-go (from $GOPATH)
\Users\xxx\go\src\github.com\luno\luno-go (from $GOPATH))

Error loading workspace: You are outside of a module and outside of $GOPATH/src. If you are using modules, please open your editor to a directory in your module. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new.

I tried manually copying the Luno package from \Users\xxx\go*pkg*\github.com\luno\luno-go to \Users\xxx\go*src*\github.com\luno\luno-go and most of the problems are resolved.

However, I still have error message when I try to run the code in the terminal

main.go:8:2: no required module provides package github.com/luno/luno-go: go.mod file not found in current directory or any parent directory; see 'go help modules'

Running 'go get' is no longer supported with latest versions of go

Recommended by go cli to use go install with @latest to download module.

go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.

When I try this:

  • go install github.com/luno/luno-go@latest

I receive the following error:

  • go: downloading github.com/luno/luno-go v0.0.26
  • package github.com/luno/luno-go is not a main package

Add filled_volume to Order.

Currently, it is impossible to tell how much of a limit order has actually filled. It will be great if a property filled_volme can be added to the type Order to hold this value.

ETH Withdrawal

Hi,

I've noticed an issue with ETH withdrawals lately. This has happened a few times on our corporate account. This is actually not a API wrapper issue, but I'm not sure what the right forum to raise this would be.

image

Above shows an ETH withdrawal from yesterday. However, this is still in this state. I have to login, click 'STOP' and re-submit our withdrawal. This initial ETH transfer seems to have never been submitted.

I expect that we could implement a workaround, and cancel the withdrawal after X period and then submit, but obviously I'd rather not have to go this route.

README Example is not valid anymore

README hasn't been updated in over a year, and, hence, the example provided doesn't actually work since Client methods now require context.

Opening this issue because I intend to close it and will reference it in the PR.

Edit: Submitted a PR closing this issue.

Luno.com is a SCAM

Don't use it, they STOLE your money and don't let you withdraw with escuses after escuses, when they answer at all.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>luno/.github)

listtrades API - Receiving no trades

Hi,

I'm currently receiving no trades when I request them. This previously has worked though :/
I definitely have trades on this account, so under what condition should I be expecting 'null' for the trades?

`
let auth = new Buffer(API_KEY + ':' + API_SECRET).toString('base64');
request({
url: 'https://api.mybitx.com/api/1/listtrades?pair=XBTZAR',
method: 'GET',
headers: {
Authorization: 'Basic ' + auth,
'Content-Type': 'application/json',
},
}, function (error, response, body) {

        if (error) {
            return reject('[getLunoTrades] ' + error);
        }

        if (!response) {
            return reject('[getLunoTrades] Response is ' + response);
        }

        if (response.statusCode >= 400) {
            return reject('[getLunoTrades] Error ' + response.error);
        }

        let jsonTrades = JSON.parse(response.body);
        console.log(jsonTrades);
        if (jsonTrades.trades != null) {
            return resolve(jsonTrades.trades);
        } else {
            return resolve([]);
        }
    });

`

Console output:
{ trades: null }

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/test.yml
  • actions/checkout v4
  • actions/setup-go v5
gomod
go.mod
  • go 1.20
  • github.com/gorilla/websocket v1.5.1
  • golang.org/x/time v0.5.0

  • Check this box to trigger a request for Renovate to run again on this repository

No way to add callbacks to streaming Conn

I might be missing something obvious but I don't see a way of adding a callback to the Conn struct in the streaming package.

The two fields connectCallback and updateCallback on the struct are lowercase and therefore cannot be set from outside the package.

Would it be possible to create a way of adding callbacks to the Conn? Either by exporting the struct fields or creating a new factory function that accepts callbacks.

Contacting support Luno Websocket API

Hey there can you help point me in the direction to get in contact with someone that works with the Luno Websocket API.

Based on the sockets available and information they provide on the support page im unable to rebuild the order book. Would much appreciate any help.

If this issue should live in one of the other repos here at Luno, please point me in the right direction.

Thanks!

Wrong "type" values documented for GetOrder endpoint

Both the documentation and the code here show OrderType (type) as "BID" or "ASK" for the GetOrder endpoint, however the response contains "SELL" or "BUY"

{
    "base": "1.0263",
    "completed_timestamp": 1621595283273,
    "counter": "3599.2341",
    "creation_timestamp": 1621595283238,
    "expiration_timestamp": 0,
    "fee_base": "0.0030789",
    "fee_counter": "0.00",
    "limit_price": "0.00",
    "limit_volume": "1.0263",
    "order_id": "SOMEID",
    "pair": "BCHMYR",
    "state": "COMPLETE",
    "trades": [
        {
            "is_buy": false,
            "price": "3507.00",
            "sequence": 135867,
            "timestamp": 1621595283273,
            "volume": "0.4555"
        },
        {
            "is_buy": false,
            "price": "3507.00",
            "sequence": 135868,
            "timestamp": 1621595283273,
            "volume": "0.5708"
        }
    ],
    "type": "SELL"
}

Combined order book volumes

Hi, is there any way to return the combined order book entries where the volumes of asks/bids with the same price are summed together? Or does this have to be done by the calling app when an update is received?

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.