elective-stereophonic
elective-stereophonic
Exchange integration: technical stuff/documentation/resources singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Author Topic: Exchange integration: technical stuff/documentation/resources  (Read 12029 times)

EvilDave

  • Hero Member
  • *****
  • Karma: +341/-40
  • Offline Offline
  • Posts: 1789
    • View Profile
    • NXT Foundation

This is exactly what it says on the box: a single thread to put all possible information that could be helpful with exchange listing/integration for NXT.
Technical dudes: feel free to contribute anything you think could help. I'll add stuff as it comes in to the OP

Heres the Wiki API article, just to start off:
https://nxtwiki.org/wiki/The_Nxt_API

Plus a how to guide (Nov 2016, so recent):
https://nxtwiki.org/wiki/Exchange_Integration

Very useful API info:
Nxt API calls

Study guide from Benjyz:
Nxt Code Study Guide

Here is Wesleys guide to NXT integration:
NXT Integration Guide

Nxtlib for C#:
https://nxtforum.org/api-discussion/nxtlib-a-typed-net-api-wrapper-for-nxt/

Nxtlibfor php:
https://nxtforum.org/general/nxtlib-php-five-functions-to-allow-easy-nxt-integration/
« Last Edit: December 16, 2016, 12:12:32 am by EvilDave »
Logged
Nulli Dei, nulli Reges, solum NXT
NXT Donations: NXT-BNZB-9V8M-XRPW-3S3WD
We will ride eternal, shiny and chrome!

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Exchange integration: technical stuff/documentation/resources
« Reply #2 on: June 27, 2014, 07:11:18 am »

I came across this on my travels...

https://expresscoin.com/

Not exactly an exchange but worth pursuing? I don't know anything about it...
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

DoM P

  • Hero Member
  • *****
  • Karma: +114/-147
  • Offline Offline
  • Posts: 1115
    • View Profile
    • Crypto Finance Analysis Consulting
Re: Exchange integration: technical stuff/documentation/resources
« Reply #3 on: June 27, 2014, 08:00:56 am »

I came across this on my travels...

https://expresscoin.com/

Not exactly an exchange but worth pursuing? I don't know anything about it...
I got in touch with Gocoin's CEO a couple days ago and, when talking about some business I was planning, I was told i should talk to ExpressCoin's CEO.
So I will do this as soon as I get his email from Gocoin
Logged
Have you heard of CryptoCoins? You should!
Crypto Finance Analysis Consulting: cfa-consulting.ch
Nxt : NXT-LP8G-9NHV-VUQB-58ZZF

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Exchange integration: technical stuff/documentation/resources
« Reply #4 on: June 27, 2014, 08:07:00 am »

For your HFT exchange?  :o
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

DoM P

  • Hero Member
  • *****
  • Karma: +114/-147
  • Offline Offline
  • Posts: 1115
    • View Profile
    • Crypto Finance Analysis Consulting
Re: Exchange integration: technical stuff/documentation/resources
« Reply #5 on: June 27, 2014, 08:25:29 am »

For your HFT exchange?  :o
No, I don't have any plan for that.
Until a deal is sealed, I don't wish to say more. No hype, because there no reason for any, and no information because I want to protect the ideas before we actually do something.

I was just saying that I will know more about Expresscoin pretty soon
Logged
Have you heard of CryptoCoins? You should!
Crypto Finance Analysis Consulting: cfa-consulting.ch
Nxt : NXT-LP8G-9NHV-VUQB-58ZZF

Daedelus

  • Hero Member
  • *****
  • Karma: +230/-12
  • Offline Offline
  • Posts: 3280
    • View Profile
Re: Exchange integration: technical stuff/documentation/resources
« Reply #6 on: June 27, 2014, 08:44:24 am »

Ok, I think I have mistaken identity again.

Looking forward to the formal, unhyped announcement when the time is right ;D
Logged
NXT: NXT-4CS7-S4N5-PTH5-A8R2Q

EvilDave

  • Hero Member
  • *****
  • Karma: +341/-40
  • Offline Offline
  • Posts: 1789
    • View Profile
    • NXT Foundation
Re: Exchange integration: technical stuff/documentation/resources
« Reply #7 on: August 13, 2014, 05:58:53 pm »

Important info on update 1.2.4 for exchange operators!

There is an important change to do with the way that new NXT accounts are created from block 215,000 onwards, this will affect exchange operators, so i'm posting an edited version of  Wesleys PMs on the change here:

Quote
Hello,

I contact you simply to let you know that there are a few API changes in this release that you should think about as I know you are on the brink of releasing NXT on your exchange.

Starting from block 215,000 there will be a new API for new accounts, to "activate" a new account you must announce it's public key. You will have to provide both of these to the user if he is to deposit in a user-specific account. For deposit you will have to accept both fields in case the user wants to export to a new account that has no public key yet.

To announce the public key, you add the "recipientPublicKey" parameter to any transaction. You can check if an account already has a public key via getAccountPublicKey api.

Other new API's of interest are available from block 213,000 (earlier):

You will see that almost all transaction types now allow you to add a message. Especially handy for send money transactions of course. Instead of having an account for each user, you could have 1 central account and ask the user to add his user-identifying number or an invoice number or something like that. The message can be public or private (encrypted).

decryptFrom API to decrypt message data. Perhaps you could also use the readMessage api instead, I haven't tested that yet.

Let me know if you have any questions,
wesley

Quote
Hello!

I`m B, technical specialist from X. Our support team
forwarded me your letter about changes in API of NXT.

We have carefully reviewed it, but nevertheless, we have a few
questions:

1) Will the old scheme of deposits work or we have to use another
solution?

2) Do we need to create a public key necessarily or we may simply give
users the account number for the deposit, as before?

I’m looking forward to your reply.

Quote
Hello,

You can continue to use the old scheme of each user having his own deposit address, but you will have to supply the user the RS account ID and the account public key in the event that this account does not yet have any transaction history (so a new account).

Because on the first transaction, for a “new” account, it must be initialized with it’s public key also.

The requirement of public key starts from block 215,000 - so there is still plenty of time left at average rate of 800 blocks per day = around 2 weeks.

It’s real simple to get the public key, same as you got the normal account ID you simply call the api getAccountId  with the secret phrase , and it returns public key and accountRS.

When the user wants to withdraw, you must check if that account has a public key already, if it has then no problem, proceed as usual. If not (new account), then you must ask for the PK and add “recipientPublicKey=xxx” to your sendMoney request.

To see if a account already has a public key, use the getAccount API.

All API calls can be tested at http://localhost:6876/test

Newest release can be found here: https://bitbucket.org/JeanLucPicard/nxt/downloads

Let me know if you have any more questions,
Wesley

The public key is simply derived from the password and is not hidden, so you should be able to supply it.

Quote
Hey,

New release came out today, it now requires RS account formats, not the numeric account ID that you are using. Please update to the new format.

You can use the rsConvert API to do so, or simply use the “accountRS” json response parameter.

Btw, I haven’t yet tried multiple deposits, but I heard from someone that you generate a new account for every deposit, is this true and why?

Regards,
Wesley
« Last Edit: February 17, 2015, 11:52:53 pm by EvilDave »
Logged
Nulli Dei, nulli Reges, solum NXT
NXT Donations: NXT-BNZB-9V8M-XRPW-3S3WD
We will ride eternal, shiny and chrome!

wesley

  • Ex-Staff Member
  • Hero Member
  • *****
  • Karma: +204/-3
  • Offline Offline
  • Posts: 1159
    • View Profile
Re: Exchange integration: technical stuff/documentation/resources
« Reply #8 on: August 13, 2014, 06:33:50 pm »

Note, should add that those RS format accounts are only necessary for display (users can't send to numeric account IDs is restricted by the GUI only), not for internal API methods.

And it's block 213K now, not 210K.
Logged

nxtpelican

  • Newbie
  • *
  • Karma: +1/-0
  • Offline Offline
  • Posts: 2
    • View Profile
Re: Exchange integration: technical stuff/documentation/resources
« Reply #9 on: September 04, 2014, 12:21:45 pm »

How to handle user/deposits in an exchange
==============================================
NOTE : I already went through the default wiki to handle deposits/withdrawals.

Scenario 1:
==========================================
A client(without any account in the xchange) comes and buys some NXT with BTC and wants to withdraw NXt to his personal account.How to pay him and from which account?

Scenario 2:
===========================================
How to maintain a single account for everyone with different names like its done via MEMO is btsx and destination tag in Stellar.

This will solve the withdrawal problem greatly.

Scenario 3:
============================================
If client A has 30 NXT and client B has 30 NXT how to pay 40 NXt directly to client C ?

This is solved in btc/ltc type coins by "sendtoaddress" which sums up the inputs and then calculates the output.
In stellar it can be done as only single wallet is mainatained so its not dependant on sender's wallet balance.
In btsx .. same as stellar.

Any help will be greatly appreciated :)
Logged

EvilDave

  • Hero Member
  • *****
  • Karma: +341/-40
  • Offline Offline
  • Posts: 1789
    • View Profile
    • NXT Foundation
Re: Exchange integration: technical stuff/documentation/resources
« Reply #10 on: November 21, 2014, 07:52:31 pm »

Very useful API info:
http://85.25.198.120:7876/test
Logged
Nulli Dei, nulli Reges, solum NXT
NXT Donations: NXT-BNZB-9V8M-XRPW-3S3WD
We will ride eternal, shiny and chrome!

EvilDave

  • Hero Member
  • *****
  • Karma: +341/-40
  • Offline Offline
  • Posts: 1789
    • View Profile
    • NXT Foundation
Re: Exchange integration: technical stuff/documentation/resources
« Reply #11 on: November 30, 2014, 08:19:55 pm »

A useful thread from Benjyz:
Nxt Code Study Guide

Here is Wesleys guide to NXT integration:
NXT Integration Guide
Very useful!
« Last Edit: November 30, 2014, 08:26:07 pm by EvilDave »
Logged
Nulli Dei, nulli Reges, solum NXT
NXT Donations: NXT-BNZB-9V8M-XRPW-3S3WD
We will ride eternal, shiny and chrome!

DoM P

  • Hero Member
  • *****
  • Karma: +114/-147
  • Offline Offline
  • Posts: 1115
    • View Profile
    • Crypto Finance Analysis Consulting
Re: Exchange integration: technical stuff/documentation/resources
« Reply #12 on: December 09, 2014, 09:43:18 am »

Here is Wesleys guide to NXT integration:
NXT Integration Guide
Very useful!

This should be added to the Wiki.

I was searching something like that a few weeks ago...
Logged
Have you heard of CryptoCoins? You should!
Crypto Finance Analysis Consulting: cfa-consulting.ch
Nxt : NXT-LP8G-9NHV-VUQB-58ZZF

EvilDave

  • Hero Member
  • *****
  • Karma: +341/-40
  • Offline Offline
  • Posts: 1789
    • View Profile
    • NXT Foundation
« Last Edit: February 17, 2015, 11:46:33 pm by EvilDave »
Logged
Nulli Dei, nulli Reges, solum NXT
NXT Donations: NXT-BNZB-9V8M-XRPW-3S3WD
We will ride eternal, shiny and chrome!

NxtSwe

  • Hero Member
  • *****
  • Karma: +124/-9
  • Offline Offline
  • Posts: 658
    • View Profile
Re: Exchange integration: technical stuff/documentation/resources
« Reply #14 on: March 17, 2015, 10:42:14 am »

Here is Wesleys guide to NXT integration:
NXT Integration Guide
Very useful!
Perfect, just what I need. Is this guide still up to date?

I did read it last night, and found this:
Quote
When genesis time + transaction.timestamp + transaction.deadline * 60 is
bigger than transaction.blockTime + 23 hours, a transaction can be accepted when the
confirmation count reaches 10.

If genesis time + transaction.timestamp + transaction.deadline * 60 is smaller
than transaction.blockTimestamp + 23 hours, you should wait until the transaction has
720 confirmations before crediting the user’s account.
If I understand the text above correctly, in practice it means when you deposit NXT and you set the deadline to something less than 1440, the exchange should wait 720 blocks before crediting the user's account.
What is the reason for this?
Everything else in the document seem pretty clear.
Logged
Check out the NxtLib, the .NET Framework API for the Nxt platform.

EvilDave

  • Hero Member
  • *****
  • Karma: +341/-40
  • Offline Offline
  • Posts: 1789
    • View Profile
    • NXT Foundation
Re: Exchange integration: technical stuff/documentation/resources
« Reply #15 on: November 16, 2016, 12:29:28 am »

Logged
Nulli Dei, nulli Reges, solum NXT
NXT Donations: NXT-BNZB-9V8M-XRPW-3S3WD
We will ride eternal, shiny and chrome!

wolffang

  • Hero Member
  • *****
  • Karma: +98/-5
  • Offline Offline
  • Posts: 690
    • View Profile
Re: Exchange integration: technical stuff/documentation/resources
« Reply #16 on: November 16, 2016, 05:51:20 am »

Thnx will use it to reach out to exchanges!
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly